Hi everyone,
I’m trying to build my Habit Tracker app using MIT App Inventor, but I’m unable to generate the APK file. When I click on “Build → Android App (.apk)”, the build either doesn’t start or fails.
I’ve already tried:
However, the issue still persists.
Could someone please help me understand:
-
If this could be a server-side issue?
-
Any alternative way to generate the APK?
-
Whether using the .aab option is acceptable for submission?
Any guidance would be really helpful.
Thanks!
This the exact issue I am facing
i think you only started designer you also need to start build server
start the build server using ant RunLocalBuildServer
I tried with the steps to build it from the repo for ios but it is still not building and the screen is also changed.
Till now i have followed these steps :
Build
export JAVA_HOME=$(/usr/libexec/java_home -v 11)
export PATH=$JAVA_HOME/bin:$PATH
ant webapp
# Run
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
export PATH=$JAVA_HOME/bin:$PATH
~/google-cloud-sdk/bin/java_dev_appserver.sh appengine/build/war
~/google-cloud-sdk/bin/java_dev_appserver.sh --port=8888 --address=0.0.0.0 appengine/build/war
so can anyone tell me what to add here in order to do it correctly as I am a little confused here
you need to run two separate servers simultaneously in two different terminal windows to build an APK locally.
To fix the "Connection refused" error, you need to run the Build Server alongside the web interface. Here is how:
- Keep your current terminal running (the one running
java_dev_appserver.sh).
- Open a new, second terminal window.
- Navigate to the root of your App Inventor repository.
- Run the command:
ant RunLocalBuildServer
1 Like
Thanks for the help. Now I am able to successfully build the apk file.