Unable to compile peoject

Apparently I can't compile my project.

Well, I wanted to build an app counting how many something using the proximity component.

Screenshots
Error Code

0%
App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.006 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 = 2
[LoadComponentInfo] Component xmls needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] Task succeeded in 0.006 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.056 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.005 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_anon3846544098657.Tallyo.Screen1'
[CreateManifest] INFO: Writing screen 'appinventor.ai_anon3846544098657.Tallyo.Screen2'
[CreateManifest] Task errored

Gemini

I understand! You'd prefer a more conversational and flowing explanation of the possibilities rather than a structured list. I can certainly do that while keeping the information clear and focused on fixing your compiler issue!

Here are the most likely reasons for the [CreateManifest] Task errored compiler failure in App Inventor, starting with the most common problem given your situation:

The Lingering 'Ghost Screen' Problem

Since the compiler output mentioned Screen2 but you only have Screen1, the number one suspect is a ghost screen reference. This happens when App Inventor fails to completely clean up the internal project files after a screen has been deleted or renamed, leaving a broken instruction for the compiler. The compiler then tries to write the final list of screens (the Manifest) and hits this error.

  • The Fix: The best way to deal with this is to go to Projects and select Save project as... Give it a simple, new name. This action forces the server to rewrite the project's internal configuration from scratch, including only the components and screens you can actually see, which usually flushes out the ghost reference.

Issues with Naming and Text

The compiler is very picky about names and certain text fields, as these are used to create the core structure of the app.

  • Invalid Screen and App Names: Even though you only have one screen, make sure its Name (in the Components list) and the overall AppName (a property of Screen1) only use letters, numbers, and perhaps simple spaces (for AppName). Avoid hyphens, symbols, or punctuation in these critical fields.
  • Illegal Media File Names: If any image, sound, or video file you uploaded in the Media panel has a space, hyphen, or symbol in its original file name (e.g., my image!.png), the compiler can fail when trying to package it. Check all your media assets and ensure their names are simple, using only letters, numbers, and underscores.

Problem with the App Icon

The process that happens right before the Manifest creation is generating the app icon. While your log suggested this task succeeded, a bad icon file can still corrupt the final Manifest step.

  • The Fix: Select Screen1 in the Designer and look at the Icon property. If you have a custom image there, try temporarily clearing it so the app uses the default App Inventor icon. If it compiles successfully afterward, you'll know the specific image file was the issue (either its name or its format/dimensions).

Third-Party Extensions

If your app uses any .aix extensions, an outdated or incompatible extension could be inserting code into the Manifest that the current App Inventor compiler rejects.

  • The Fix: If you recently added an extension, try temporarily removing it and compiling again.

By focusing on these areas—especially the ghost screen fix by saving a new copy—you should be able to clear this compiler error and successfully build your app!

Did you have a chance to try saving the project under a new name? What was the result?

Well, I did duplicate my project and I've got the same lines of Error Codes.

Clarification:

  • I do not have any image components in my app
  • Well, I just used App Inventor's default app icon (which means I did not upload my icon)
  • MAIN PROBLEM?: I did delete my screen but was told to report bug (So the screen is still there? ) But when I go back to screen 1 and open the screens pannel and did not see screen 2, so I can't delete screen 2 again.
  • I did not use any extensions
  • I used ProximitySensor1, some labels, arrangements, and buttons.

My Question: Do I have to create another project and code again? :cry:

Thank you for your help and I really appreciate it! :grinning: Have a great day and...

Keep Koding

If the blocks and design you show are all your design & blocks, I would be inclined to advise you just start a new clean project.

You should also take a close look at what you have done here:

image

this logic doesn't make much sense...

This build for me:

proxTest.aia (2.7 KB)

Not quite sure what the app is supposed to be doing though, just switches between 0 and -1.

Hi @TIMAI2 , thanks a lot! After making a brand new project, it worked. Thank you very much!

Please check out this post! (Don’t cry! :wink:) Please don’t mind reading it from top to bottom!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.