App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
YAIL compiler - AAPT execution failed.
If in the DOS window of buildserver.cmd you see on the very first 2 lines something like this
“Running build server…”
Picked up _JAVA_OPTIONS: -Xms512m -Xmx512m
it’s a matter of memory, because you are using an old version; in fact in the new version you should see
Picked up _JAVA_OPTIONS: -Xms1024m -Xmx1024m
If it’s already the last version the reason is another one and for me it’s hard to help you
Hello nandu_aeer
First, ensure you have not tripped-up on any of these issues:
https://www.professorcad.co.uk/appinventortips#TipsImages Images
https://www.professorcad.co.uk/appinventortips#TipsApk Cannot Build/Install/Run APK
I also try last version of app inventor but same error
I also try the blank project but same error
So probably the error is not related to the Offline version and you might have the same issue also on the online version
No sir just I try online version its working perfectly I build apk successfully
1- is it the only App you cannot build? Did you try a different one?
2- Did you check if the environment variables are well set
for example JAVA_HOME = C:\Program Files\Java\jre1.8.0_251
or similar?
I have set like this
JAVA_HOME = C:\Program Files\Java\jdk.8.0_251
what about the first question? did it ever work with other apps?
No sir like this 1.8.0_251
jdk or jre?
I set Jdk 1.8.0_251
i set JRE, the runtime of java, i don’t know if this can be the problem… give it a try…
but you didn’t answer the question: were you ever able to build an App with your Offline version?
Sir I set JAVE_HOME C:\programFile\java\jre also but give error
Recently I format my pc and after I downloaded new offline versions of app inventor and set all variable setting befor formatting my pc i build apk successfully and I also try to build extension its building successfully. now problem is apk building faild
I hope someone will help you… I’m not able to suggest more…
Just check if these Variables are also set
ClassPath = %JAVA_HOME%\Lib
_JVA_OPTIONS = -Xms1024M
Yes sir i set like this only
ClassPath = %JAVA_HOME%\Lib
_JAVA_OPTIONS = -Xms1024M
Hello nandu - so it’s your private build of App Inventor on your desktop. There is a better forum for that:
https://community.appinventor.mit.edu/c/open-source-development/10
Hi sir appybuilder offline also I try but it’s working properly I able to build apk in appybuilder offline is it any problem in app inventor
nandu -
- Works on online version
- Works on AppyBuilder Offline
- Doesn't work on your Offline version
What does that tell you?
Did you ask for help in the correct forum I gave you a link to?