AAPT2 Build Error

I am getting this error while developing my app. It says that APPT2 couldn’t link properly. I am also attaching the .aia file (pls ignore the name). Can anyone fix it?

Niotron is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.01 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets...
[LoadComponentInfo] Component assets needed, n = 15
[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 = 2
[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.Clock" 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.File" 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.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.TextBox" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalArrangement" does not specify permissionConstraints
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 5
[LoadComponentInfo] Component services needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] Task succeeded in 0.011 seconds
[CheckPremium] Starting Task
[CheckPremium] INFO: Checking User Premium...
[CheckPremium] INFO: Getting User Monetization Status...
[CheckPremium] Task succeeded in 0.34 seconds
[CheckCoreComponents] Starting Task
[CheckCoreComponents] INFO: Checking Core Components...
[CheckCoreComponents] Task succeeded in 0.0 seconds
[CheckRequiredAssets] Starting Task
[CheckRequiredAssets] Task succeeded in 0.0 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.098 seconds
[CreateIconSplash] Starting Task
[CreateIconSplash] INFO: Generating splash icon...
[CreateIconSplash] Task succeeded in 0.0 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 19
[CreateManifest] INFO: Writing screen 'com.niotron.10xyz_coder.BottomNavigation.HistoryScreen'
[CreateManifest] INFO: Writing screen 'com.niotron.10xyz_coder.BottomNavigation.Screen1'
[CreateManifest] Task succeeded in 0.021 seconds
[CreateConditionalXmls] Starting Task
[CreateConditionalXmls] Task succeeded in 0.0 seconds
[AttachMediationAdapterLibraries] Starting Task
[AttachMediationAdapterLibraries] Task succeeded in 0.0 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.001 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.257 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.016 seconds
[MergeManifests] Starting Task
[MergeManifests] Task succeeded in 1.888 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.647 seconds
[RunJetifier] Starting Task
[RunJetifier] INFO: Running Jetifier...
[RunJetifier] Task succeeded in 0.0 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt2] Starting Task
[RunAapt2] USING EXPLODED AAR LIBS
[RunAapt2] ERROR: Could not execute AAPT2 link step
[RunAapt2] ERROR: Error while linking with AAPT2
[RunAapt2] Task errored in 1.946 seconds

BottomNavigation.aia (20.3 KB)

Works just fine at my end, the only conclusion is that your email start with numbers as in the past this was the issue, try with another email.

1 Like

Thanks a ton Boban! You’re the best! :slight_smile:

2 Likes

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