Could not turn app into APK

I really need this to be an APK file by tomorrow, but it seems like I cannot fix it and it keeps giving me this error message.

Math_helper (7).aia (203.7 KB)

The important part of the error log is at the bottom.

Show the bottom

1 Like

I kind of made some changes so here you go,

Math_helper (10).aia (203.7 KB)

App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.003 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets...
[LoadComponentInfo] Component assets needed, n = 0
[LoadComponentInfo] INFO: Generating activities...
[LoadComponentInfo] Component activities needed, n = 0
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers...
[LoadComponentInfo] INFO: Generating libraries...
[LoadComponentInfo] Libraries needed, n = 0
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK...
[LoadComponentInfo] INFO: Generating native libraries...
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions...
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 4
[LoadComponentInfo] Component xmls needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] Task succeeded in 0.003 seconds
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs...
[PrepareAppIcon] INFO: Generating icons...
[PrepareAppIcon] Generating icons for mipmap-mdpi
[PrepareAppIcon] Generating icons for mipmap-hdpi
[PrepareAppIcon] Generating icons for mipmap-xhdpi
[PrepareAppIcon] Generating icons for mipmap-xxhdpi
[PrepareAppIcon] Generating icons for mipmap-xxxhdpi
[PrepareAppIcon] Task succeeded in 1.123 seconds
[XmlConfig] Starting Task
[XmlConfig] INFO: Creating animation xml
[XmlConfig] Creating zoom_enter.xml
[XmlConfig] Creating fadeout.xml
[XmlConfig] Creating slide_v_exit.xml
[XmlConfig] Creating fadein.xml
[XmlConfig] Creating zoom_exit.xml
[XmlConfig] Creating slide_v_enter.xml
[XmlConfig] Creating zoom_exit_reverse.xml
[XmlConfig] Creating slide_v_enter_reverse.xml
[XmlConfig] Creating zoom_enter_reverse.xml
[XmlConfig] Creating slide_enter_reverse.xml
[XmlConfig] Creating slide_exit.xml
[XmlConfig] Creating hold.xml
[XmlConfig] Creating slide_enter.xml
[XmlConfig] Creating slide_v_exit_reverse.xml
[XmlConfig] Creating slide_exit_reverse.xml
[XmlConfig] INFO: Creating style xml
[XmlConfig] INFO: Creating provider_path xml
[XmlConfig] INFO: Creating network_security_config xml
[XmlConfig] INFO: Generating adaptive icon file
[XmlConfig] INFO: Generating round adaptive icon file
[XmlConfig] INFO: Generating adaptive icon background file
[XmlConfig] Task succeeded in 0.003 seconds
[CreateManifest] Starting Task
[CreateManifest] INFO: Reading project specs...
[CreateManifest] VCode: 1
[CreateManifest] VName: 1.0
[CreateManifest] Min SDK 14
[CreateManifest] INFO: Writing screen 'appinventor.ai_stevanoraphaelwijaya.Math_helper.MateriKelas9'
[CreateManifest] INFO: Writing screen 'appinventor.ai_stevanoraphaelwijaya.Math_helper.MateriKelas7'
[CreateManifest] INFO: Writing screen 'appinventor.ai_stevanoraphaelwijaya.Math_helper.MateriTKA'
[CreateManifest] Task errored

How many screens are there? If just 3, the error occurs with screen 3 but if there is a forth, that has the error. Sorry I'm away from my PC so I can't look over your file.

Does the current project run on the companion, on your Android device? It maybe a physical item such as an image/icon is not found.

Following a quick look at your aia project:

  1. You are not switching screens correctly. Search the community for how to do this properly
  2. You have many buttons across many screens named "Back". This can cause a conflict with internal components in AppInventor. You need to rename these so that they are not called "Back", e.g. "btReturn" or "btBack".

Theres 10 screens, I have some problems with like loading the project sometimes. I just looked at the error message and theres still materiTKA, whiich is a screen that has already been deleted and somewhat is still there.

I changed the Last Loaded Screen in the Project Properties in the aia, and it loads and builds okay on the code server.
Math_helper13.aia (203.3 KB)

One screen is unusually large in terms of block count.

(Canned Reply ABG - code server)

The code server is for oversized projects.

code.appinventor.mit.edu/?autoload=false