APK cannot be created. Error running AAPT

App-Inventor kann das Projekt nicht kompilieren.
Der Kompilierungsfehler lautete:
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.015 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] Component content providers needed, n = 0
[LoadComponentInfo] INFO: Generating libraries...
[LoadComponentInfo] Libraries needed, n = 4
[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] INFO: Component "com.google.appinventor.components.runtime.Button" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.CloudDB" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.DatePicker" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Form" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.HorizontalArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Image" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Label" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.ListView" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Notifier" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.PasswordTextBox" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Slider" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Spinner" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Switch" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TableArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TextBox" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TimePicker" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalScrollArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.WebViewer" does not specify permissionConstraints
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 11
[LoadComponentInfo] Component services 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 0.536 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: 2
[CreateManifest] VName: 2.0
[CreateManifest] Min SDK 7
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.Event'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.AdminEvent'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.AdminMenue'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.PWScreen'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.Eventersteller'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.AdminDB'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.Screen1'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.EventBetrachter'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.Zeigen'
[CreateManifest] INFO: Writing screen 'appinventor.ai_amendconstantin.Tilters_Screen_pr?fpunkt2.DiscordLink'
[CreateManifest] Task succeeded in 0.001 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.002 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.179 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.008 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.21 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] ERROR: Error running AAPT
[RunAapt] Task errored in 0.875 seconds

If that doesn't help,

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

export_and_upload_aia

Does your App have many Assets such as images?

Tilters_New.aia (969.3 KB)

Hm, there are already a few. But a few months ago it still worked. Unfortunately, I don't know where the limit is

see tip 2 here

unknown

Taifun

This compiles fine on the code server.

It even compiles on the regular server, @Constantin_Amend try reimporting the project..

Btw, your app project name contains ? and hence that it does not work from your side

All the images should be smaller dimensionally. Images should be optimised for Android, please see:

https://www.professorcad.co.uk/appinventortips#TipsImages

Hello,

Thank you for your support. Apparently the ? has disturbed him.

I will be careful with the pictures. Thanks for that.

Thanks for the quick help

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