Skip to first unread message

davicz745

unread,
Feb 11, 2015, 12:58:46 PM2/11/15
to mitappinv...@googlegroups.com
Hi! I'm creating an app with App inventor 2 and when I try to build the app I get the following error, I will be so thankful if you tell me what can be the issue

App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Determining permissions
________Generating manifest file
________Attaching native libraries
________Copying native libraries
________Attaching component assets
________Compiling source files
(compiling appinventor/ai_davicz745/ScivyApp/Imagenes.yail to appinventor.ai_davicz745.ScivyApp.Imagenes)
(compiling appinventor/ai_davicz745/ScivyApp/Oculto.yail to appinventor.ai_davicz745.ScivyApp.Oculto)
(compiling appinventor/ai_davicz745/ScivyApp/Screen1.yail to appinventor.ai_davicz745.ScivyApp.Screen1)
(compiling /tmp/runtime8279272512350246120.scm to com.google.youngandroid.runtime)
Kawa compile time: 4.26 seconds
________Invoking DX
DX time: 20.585 seconds
________Invoking AAPT
YAIL compiler - AAPT execution failed.

SteveJG

unread,
Feb 11, 2015, 1:06:58 PM2/11/15
to mitappinv...@googlegroups.com
One of the following  possibly applies to your code (all may not apply to your code):

1)  You have coding errors in your blocks.  In the Blocks editor, look in the lower 
left corner of the window for the yellow and red triangle icons. If the red icon has a value larger than 0, 
you have a serious coding error.  Find the block in your code that has a red triangle and 
fix it.   Red triangles always inhibit creating an apk or running a project in the 
emulator or possibly creating an aia file.     Yellow triangles are more forgiving, 
however, sometimes, these need to be fixed because they trip an internal warning and not filling puzzle piece sockets that are left un-filled can sometimes cause issues if the app needs a value that is not filled.

2) Your source file (the aia file) is larger than the 5Mb limit allowed in AI2 (the aia can not be larger than 5Mb). You may have put images or other resources in your Media (resources) that you do not use in the app. 
 All the images and sounds in resources count toward the 5Mb limit along with the source code.    You can program 
apps larger than 5Mb in the browser, but the apps will not compile and might not run in the 
emulator or the project may not save as an aia. If this is the case you need to reduce 
the size of your image and/or sound files.   Most image files can be made quite small 
by resizing them using a photo manipulation program on your PC to less than 50Kb each.

3)  You might have more than 10 Screens in your app.  AI2 becomes unstable when more 
than ten screens are used.  Projects CAN be built with slightly more screen but then you should expect your app to occasionally behave erratically.

4) You might have set a Screen icon in the Designer Properties for your project that is too large. Use an image 
sizeof 48x48 px  instead and only use jpg or png images.  *.ico files are not 
supported.  The 'icon' (actually an image) Google Play requires when posting needs to be 520x520 for their display.  The smaller 'icons' work for the app's icon (the one shown on the device's screen that is pressed to activate the app.

5) You did not code the entire project using App Inventor 2.   If you used one of the 
third-party AI2 clones,you might not be able to load a Project into the AI2 compiler or 
create an apk with the standard AI2.

6) If you incorrectly modified the project's Manifest files using a third-party tool, you may have issues.

There are other reasons you might get an error message like the one you received; best guess is #1 or 2 above or possibly 3.   How large is the project aia file?

Regards,
Steve

davicz745

unread,
Feb 11, 2015, 1:28:23 PM2/11/15
to mitappinv...@googlegroups.com
Thanks for the answers, it was because it is not possible to write letter in the VersionName propietie in Screen1
Reply all
Reply to author
Forward
0 new messages