AAPT2 Error or Android Storage Permission

VargVikarnes
Mon, 31 Mar 2025 13:41:29 +0000
Mobile

Hi am trying to build android apps using unreal engine 5, The main problem is android 34, google play store doesnt allow apps below this to be uploaded. Am always running into AAPT2 aapt2-4.0.0-6051327-windows Daemon #0 or #1 error. Am relatively new atleast to this packaging stuff. Please help me. Heres the log:

: FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * What went wrong:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Execution failed for task ‘:app:processDebugResources’.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): This should not happen under normal circumstances, please file an issue if it does.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Try:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED in 20s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 30 actionable tasks: 30 executed
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: cmd.exe failed with args /c “C:\Users\dheer\OneDrive\Documents\Unreal Projects\FloppyDuck\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): (see C:\Users\dheer\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\Log.txt for full exception trace)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool executed for 0h 1m 47s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error

please help me solve this kindly !

Note- android 33 gives no error with admob plugin but cant be uploaded to google play.
I was using android studio giraffe 4.0.0 but Ive now switched to Android Studio Meerkat 2024 thinking it might solve it but I still get the same error.

I’ve also tried deleting Saved Intermediate and binary folders and updated the android studio.

Is there any way how to enable storage permissions for android 14 / sdk 34, I currently bypassed it using a plugin.

And or Is there any way or plugin that lets you enable ads on Unreal Engine 5.4.4

PLEASE HELP UNREAL GODS.
Thanks in advance !