I have been encountering a particular issue using Android App Inventor recently. The error message says:
error your build failed due to a server error in the AAPT stage
It turns out this was caused by having too many extra images. Once we removed the additional unused images the problem went away.
Perhaps this will help someone.