Build failed! [RunAapt] ERROR: Error running AAPT and internal error has occured

Can anyone help me with my project? I am having this error. I would appreciate any help because this is for a school project.


Capture 0

If that doesn't help,

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

Look how many Screens you have:


[CreateManifest] VName: 1.0
[CreateManifest] Min SDK 7
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.tameanimal2'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Hamster'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Giraffe'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.lion'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Zebra'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.introtameanimal'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Horse'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Elephant'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.wildanimal'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Cow'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Camel'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Crocodile '
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.snake'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Gorilla'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.about'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Wolf'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Rabbit'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Cat'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Chicken'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.QUIZ'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Tiger'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Bear'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Screen3'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Screen1'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Rhino'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.wildanimal2'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.QUIZSCREEN'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Duck'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Donkey'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Dog'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Screen2'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.tameanimal'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Cheetah'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.introwildanimals'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.wildanimals3'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Bird'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.tameanimals3'
[CreateManifest] INFO: Writing screen 'appinventor.ai_agetzler.ANIMAL2.Sheep'
[CreateManifest] Task succeeded in 0.002 seconds
[AttachNativeLibs] Starting Task

Even code.appinventor.mit.edu has trouble with this.

See the first 2 links at

for how to reduce your screen count.

You should be reusing images and players by loading them from lists.

https://ai2.appinventor.mit.edu/reference/other/manyscreens.html

1 Like

Looks like copy paste screens as names don't match

e.g.

1 Like

Even tho this is fixed, I suggest you follow @ABG suggestions above

Tq for helping, i can build the apk. :grin:

Tq for helping me :+1:t2::+1:t2::+1:t2::+1:t2:

(added to FAQ)

6 posts were split to a new topic: There’s a problem in building my apk! It stops at 100%, waiting for Barcode