Play Console Error SDK34+: "This app targets Android 14 or above, and your current Play Billing Library version doesn't support Android 14. To target the latest Android version, please update your PBL version to either 5.2.1, or 6.0.1 and above"

I’m also experiencing similar issue with the ShowExternalLoginUI, only diffference is that it never worked for me. Yeah, it requires API Level 34 now, any update on this?

I’m going through adocumentation about how to make this work, but im not sure if its even possible or its really broken on SDK 34 in Unreal.

Also, just a side note, in the Android SDK section of Project Settings, its not required to set the “SDK API Level” to android-34 also, its enough in the Android section’s Target SDK Version.

I’m targeting SDK 34 but im packaging with SDK 30, and it works.

Do we have to follow this video or not? : https://www.youtube.com/watch?v=b4zcM9AsRek

or this will work?

Thanks!

1 Like

check out: Unreal Engine 5 Update Google Play Billing Library 3, 4 or 5 to 6 - Edvog

It still does not work sorry for the late reply I even tried moving from my project from UE4. 27.2 to UE5. 3 but to no avail it even worsen now because some of the asset am using are for lower vasion of unreal engine.
But have you find any solution on how to target API 34. Am just really confused right now

Please Will this also work for unreal engine 4.27.2 ?

If someone asks you to help repair their car, but they dont give any information on whats the problem, will you be able to help them?

You didnt provide any information about the error at all, so its IMPOSSIBLE to help you. Provide some error logs, or exception or something that helps.

Im able to package to SDK 34 for a few days now, the only issue is that I have to use AGP 7.4.0 until I update the build.gradle files to work with AGP 8+, I cant get google play services to work.

Am sorry for not given much details on the error I got. I am using UE4.27.2 I can successfully package my game with android API level 32 but since Google requires us to package with API 34 and above i am trying to package my game with either API 34 or 35 but it throws an error toward the ending of packaging my game. Here is a picture of the error I get

Blockquote

1 Like

can you copy paste here the exception starting from the FAILURE line?

How does your

Project → Android → min SDK, target SDK, and other settings
Project → Android SDK → SDK API level, NDK Api level, java version, NDK version
Project → Packaging

configuration look like?

Any small configuration in the places above mentioned can fail the packaging, also the next ones too:

app build.gradle in Engine → Build → Android → Java → gradle
build.gradle in Engine → Build → Android → Java → gradle → app
AndroidManifest.xml in Engine → Build → Android → Java → JavaLibs → downloder_library
AndroidManifest.xml in Engine → Source → ThirdParty → AndroidPermission → permission_library

I have fixed every error to package to SDK 34, I guess youre trying to package to SDK 35, right now SDK 34 is the minimum, so I fixed every error for that. I can help further after you provide more on the error and on the config youre using currently (the project settings I have asked above would be enough for now).

Also, are you using unreal 4.27.2 from github (source version) or from epic games launcher?

I think I will make a post later about all the config needed for SDK 34 to work until I forget it.

1 Like

good day sir, i hope you are doing good today am sorry for not providing every info you need to know where the error is comming from but base on what you have said that you are not try packaging with Android API 35 i have now switch the Android API to 34 in my Android studio 4.0 but still got error and here is everything you need to maybe identify where the problem may be coming from. here is the log error i got when packaging +Files+Epic+Games+UE_4.27\PakList_CubeDash-Android_Multi.txt" -cryptokeys=“C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\Cooked\Android_Multi\CubeDash\Metadata\Crypto.json” -secondaryOrder=“C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log” -platform=Android -compressionformats=Oodle -compre
ssmethod=Kraken -compresslevel=7 -multiprocess -abslog=“C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UnrealPak-CubeDash-Android_Multi-2024.08.14-03.23.59.txt” -compressionblocksize=256KB
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: Loading text-based GConfig…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): OodleDataCompression: Display: Oodle v2.9.0 initializing with method=Kraken, level=7=Optimal3
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Parsing crypto keys from a crypto key cache file
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Loading response file C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\PakList_CubeDash-Android_Multi.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Added 2552 entries to add to pak file.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Loading pak order file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Finished loading pak order file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Collecting files to add to pak file…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Collected 2552 files in 0.02s.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Creating pak C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi\CubeDash\Content\Paks\CubeDash-Android_Multi.pak.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormats in priority order: Oodle, Zlib
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogDerivedDataCache: Display: Pak cache opened for reading …/…/…/Engine/DerivedDataCache/Compressed.ddp.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogDerivedDataCache: Display: Performance to C:/Users/harmony/AppData/Local/UnrealEngine/Common/DerivedDataCache: Latency=0.00ms. RandomReadSpeed=999.00MBs, RandomWriteSpeed=999.00MBs. Assigned SpeedClass ‘Local’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 0 [Oodle] : 1223 files, 1225835524 → 430051059 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 1 [Zlib] : 62 files, 3746162 → 1185508 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 2 [None] : 1267 files, 33401499 → 33401499 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Added 2552 files, 465071635 bytes total, time 336.49s.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: PrimaryIndex size: 59870 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: PathHashIndex size: 54917 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: FullDirectoryIndex size: 85093 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Compression summary: 35.07% of original size. Compressed Size 431236567 bytes, Original Size 1229581686 bytes.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Encryption - DISABLED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Unreal pak executed in 336.638162 seconds
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UnrealPak terminated with exit code 0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying NonUFSFiles to staging directory: C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** STAGE COMMAND COMPLETED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** PACKAGE COMMAND STARTED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BaseApkName = C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries/Android\CubeDash-Android-Shipping.apk
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi.obb from C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): [1/1] Adding CubeDash/Content/Paks/CubeDash-Android_Multi.pak to OBB
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: C:\Program Files\Epic Games\UE_4.27\Engine\Plugins\Marketplace\GoogleAdmobBlueprint\Source\GoogleAdmobBlueprint\GoogleAdmob_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\OnlineSubsystemGooglePlay_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\GooglePAD\Source\GooglePAD\GooglePAD_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Source\Runtime\Online\Voice\AndroidVoiceImpl_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Source\ThirdParty\GoogleGameSDK\GoogleGameSDK_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/GoogleAdmob_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/GooglePAD/Source/GooglePAD/GooglePAD_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Source/Runtime/Online/Voice/AndroidVoiceImpl_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Source/ThirdParty/GoogleGameSDK/GoogleGameSDK_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target SDK Version 30
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Using package name: ‘YourCompany.CubeDash’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GotStoreVersion found v5. (bUseChangeListAsStoreVersion=False IsBuildMachine=False EngineChangeList=0)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Writing packageInfo pkgName:YourCompany.CubeDash storeVersion:5 versionDisplayName:1.0 to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries\Android\packageInfo.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:03 am====PREPARING TO MAKE APK=================================================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bBuildForES31: true
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bSupportsVulkan: true
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Building Java with SDK API level ‘android-34’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Building with Build Tools version ‘30.0.3’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to shim file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Shim data file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\AlarmReceiver.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\DownloaderActivity.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\OBBDownloaderService.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Cleaning up files based on template dir C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Cleaning up files based on template dir C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Application display name is different than last build, forcing repackage.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL Init: armeabi-v7a
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Subsystem Google Play SDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Permission Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Google Cloud Messaging init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GCMClientSenderID set: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Disabled because not generating AAB bundle
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD enabled: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Voice init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GoogleGameSDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL Init: arm64-v8a
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Subsystem Google Play SDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Permission Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Google Cloud Messaging init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GCMClientSenderID set: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Disabled because not generating AAB bundle
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD enabled: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Voice init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GoogleGameSDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): On build machine.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:19 am====PREPARING NATIVE CODE=====-armv7============================================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bPackageDataInsideApk = True
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb location C:\Users\harmony\Documents\Unreal Projects\CubeDash/Saved/StagedBuilds/Android_Multi.obb
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb destination location C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7/assets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb file exists…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash/Saved/StagedBuilds/Android_Multi.obb to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7/assets\main.obb.png
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UE4CommandLine.txt exists…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi\UE4CommandLine.txt to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\assets\UE4CommandLine.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\google\m2repository
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\android\m2repository
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-auth, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-games, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-nearby, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-plus, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying Google Play BillingApiV2 java files
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/BillingApiV2 copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/src
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying permission_library directory to staging before build
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/JavaLibs/permission_library
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to OBB data file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\YourCompany\CubeDash\OBBData.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing new GameActivity.java file to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing new GameApplication.java file to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\com\epicgames\ue4\GameApplication.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying new .so C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries\Android\CubeDash-Android-Shipping-armv7.so file to jni folder…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/…/…/…/…/google-services.json does not exist, not copied!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/…/…/…/google-services.json copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/app/google-services.json
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/…/…/…/…/google-services.json does not exist, not copied!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/…/…/…/google-services.json copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/AFSProject/app/google-services.json
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying libplaycore.so and proguard files
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/…/ThirdParty/play-core-native-sdk/libs/armeabi-v7a/ndk21.4.7075529/c++_shared/libplaycore.so copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/libs/armeabi-v7a/libplaycore.so
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/…/ThirdParty/play-core-native-sdk/proguard copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/app/proguard
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:37 am====PERFORMING FINAL APK PACKAGE OPERATION=====-armv7===========================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\AndroidManifest.xml to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\gradle\app\src\main\AndroidManifest.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Making .apk with Gradle…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: The Gradle Daemon.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Daemon will be stopped at the end of the build stopping after processing
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:extractProguardFiles
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:preReleaseBuild
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:preReleaseBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseAidl NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:preReleaseBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseAidl NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseAidl
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseGoogleServices
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:createReleaseCompatibleScreenManifests
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseLibraryResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseLibraryResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:parseReleaseLocalResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:parseReleaseLocalResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseRFile
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseJavaWithJavac
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Note: Z:\permission_library\src\main\java\com\google\vr\sdk\samples\permission\PermissionFragment.java uses or overrides a deprecated API.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseRFile
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseResources FAILED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:bundleLibCompileToJarRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 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:processReleaseResources’.
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 2m 47s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 37 actionable tasks: 37 executed
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: cmd.exe failed with args /c “C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): (see C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
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

HERE IS THE SOURCE CODE FOR THE = BUILD.GRADLE IN ENGINE / BUILD / ANDROID / JAVA / GRADLE / APP

apply plugin: ‘com.android.application’

android {
compileSdkVersion = COMPILE_SDK_VERSION.toInteger()
buildToolsVersion = BUILD_TOOLS_VERSION
defaultConfig {
applicationId = PACKAGE_NAME
minSdkVersion = MIN_SDK_VERSION.toInteger()
targetSdkVersion = TARGET_SDK_VERSION.toInteger()
versionCode = STORE_VERSION.toInteger()
versionName = VERSION_DISPLAY_NAME
}
}

apply from: ‘buildAdditions.gradle’

android {

// work in progress
//externalNativeBuild {
// cmake {
// path ‘CMakeLists.txt’
// }
//}

sourceSets.main {
// disable generation of Android.mk
jni.srcDirs =

jniLibs.srcDirs = ['src/main/jniLibs', 'src/main/libs']

// aidl in java directories
aidl.srcDirs = java.srcDirs

}

lintOptions {
// uncomment to get a report
//htmlOutput file(“lint-report.html”)

// turn this back on if you want to check
checkReleaseBuilds false

// this will prevent it from stopping if above is true and an issue is found
abortOnError false

}

applicationVariants.all { variants →
outputs.all {
// move it up one level to help with path limit (app/build/outputs/apk/app-debug.apk or app-release.apk)
outputFileName = “…/” + outputFileName
}
}
}

tasks.whenTaskAdded { task →
if (task.name == ‘packageDebug’) {
tasks.create(name:‘ueDeleteOldPackageDebug’) {
doLast {
delete(‘build/outputs/apk/app-debug.apk’)
delete(‘build/outputs/apk/debug/output.json’)
}
}

task.dependsOn('ueDeleteOldPackageDebug')

}
if (task.name == ‘packageRelease’) {
tasks.create(name:‘ueDeleteOldPackageRelease’) {
doLast {
delete(‘build/outputs/apk/app-release.apk’)
delete(‘build/outputs/apk/release/output.json’)
}
}

task.dependsOn('ueDeleteOldPackageRelease')

}
if (task.name == ‘assembleRelease’) {
if (project.hasProperty(‘OUTPUT_FILENAME’)) {
tasks.create(name:‘ue4CompleteRelease’, type: Copy) {
description “Copy final release APK”
from ‘build/outputs/apk/app-release.apk’
into OUTPUT_PATH
rename (“app-release.apk”, OUTPUT_FILENAME)
}

	task.finalizedBy 'ue4CompleteRelease'
}

}
if (task.name == ‘assembleDebug’) {
if (project.hasProperty(‘OUTPUT_FILENAME’)) {
tasks.create(name:‘ue4CompleteDebug’, type: Copy) {
description “Copy final debug APK”
from ‘build/outputs/apk/app-debug.apk’
into OUTPUT_PATH
rename (“app-debug.apk”, OUTPUT_FILENAME)
}

	task.finalizedBy 'ue4CompleteDebug'
}

}
if (task.name == ‘bundleRelease’) {
if (project.hasProperty(‘OUTPUT_BUNDLEFILENAME’)) {
task.finalizedBy ‘ue4CompleteBundleRelease’

	tasks.create(name:'ue4CompleteBundleRelease', type: Copy) {
		description "Copy final release AAB"
		from 'build/outputs/bundle/release/app-release.aab'
		into OUTPUT_PATH
		rename ("app-release.aab", OUTPUT_BUNDLEFILENAME)
	}

	if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
		tasks.create(name:'ue4ExtractUniversalAPKRelease', type: JavaExec) {
			description "Extracts universal APK from APKS"
			main = "-jar"
			args = [
				"${GENUNIVERSALAPK_JAR}",
				"build/outputs/bundle/release/universal.apks",
				"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
			]
		}

		tasks.create(name:'ue4BuildUniversalAPKSRelease', type: JavaExec) {
			finalizedBy 'ue4ExtractUniversalAPKRelease'
			description "Builds universal APKS with bundletool"
			main = "-jar"
			args = [
				"${BUNDLETOOL_JAR}",
				"build-apks",
				"--bundle=build/outputs/bundle/release/app-release.aab",
				"--mode=universal",
				"--overwrite",
				"--output=build/outputs/bundle/release/universal.apks",
				"--ks=" + "${STORE_FILE}",
				"--ks-key-alias=" + "${KEY_ALIAS}",
				"--ks-pass=pass:" + "${STORE_PASSWORD}",
				"--key-pass=pass:" + "${KEY_PASSWORD}"
			]
		}

		task.finalizedBy 'ue4BuildUniversalAPKSRelease'
	}
}

}
if (task.name == ‘bundleDebug’) {
if (project.hasProperty(‘OUTPUT_BUNDLEFILENAME’)) {
task.finalizedBy ‘ue4CompleteBundleDebug’

	tasks.create(name:'ue4CompleteBundleDebug', type: Copy) {
		description "Copy final debug AAB"
		from 'build/outputs/bundle/debug/app-debug.aab'
		into OUTPUT_PATH
		rename ("app-debug.aab", OUTPUT_BUNDLEFILENAME)
	}

	if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
		tasks.create(name:'ue4ExtractUniversalAPKDebug', type: JavaExec) {
			description "Extracts universal APK from APKS"
			main = "-jar"
			args = [
				"${GENUNIVERSALAPK_JAR}",
				"build/outputs/bundle/debug/universal.apks",
				"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
			]
		}

		tasks.create(name:'ue4BuildUniversalAPKSDebug', type: JavaExec) {
			finalizedBy 'ue4ExtractUniversalAPKDebug'
			description "Builds universal APKS with bundletool"
			main = "-jar"
			args = [
				"${BUNDLETOOL_JAR}",
				"build-apks",
				"--bundle=build/outputs/bundle/debug/app-debug.aab",
				"--mode=universal",
				"--overwrite",
				"--output=build/outputs/bundle/debug/universal.apks"
			]
		}

		task.finalizedBy 'ue4BuildUniversalAPKSDebug'
	}
}

}
}

dependencies {
implementation fileTree(dir: ‘libs’, include: [‘.jar’])
implementation fileTree(dir: ‘src/main/libs’, include: ['.jar’])

implementation “android.arch.lifecycle:extensions:1.1.1”
annotationProcessor “android.arch.lifecycle:compiler:1.1.1”
}

HERE IS THE AndroidManifest.xml in Engine → Build → Android → Java → JavaLibs → downloder_library

This is the app build.gradle in Engine → Build → Android → Java → gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath project.hasProperty(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) ? project.property(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) : ‘com.android.tools.build:gradle:3.5.3’

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

}
apply from: ‘buildscriptAdditions.gradle’, to: buildscript
}

apply from: ‘baseBuildAdditions.gradle’

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

This is the AndroidManifest.xml in Engine → Source → ThirdParty → AndroidPermission → permission_library

This is the build.gradle in Engine → Build → Android → Java → gradle → app

apply plugin: ‘com.android.application’

android {
compileSdkVersion = COMPILE_SDK_VERSION.toInteger()
buildToolsVersion = BUILD_TOOLS_VERSION
defaultConfig {
applicationId = PACKAGE_NAME
minSdkVersion = MIN_SDK_VERSION.toInteger()
targetSdkVersion = TARGET_SDK_VERSION.toInteger()
versionCode = STORE_VERSION.toInteger()
versionName = VERSION_DISPLAY_NAME
}
}

apply from: ‘buildAdditions.gradle’

android {

// work in progress
//externalNativeBuild {
// cmake {
// path ‘CMakeLists.txt’
// }
//}

sourceSets.main {
// disable generation of Android.mk
jni.srcDirs =

jniLibs.srcDirs = ['src/main/jniLibs', 'src/main/libs']

// aidl in java directories
aidl.srcDirs = java.srcDirs

}

lintOptions {
// uncomment to get a report
//htmlOutput file(“lint-report.html”)

// turn this back on if you want to check
checkReleaseBuilds false

// this will prevent it from stopping if above is true and an issue is found
abortOnError false

}

applicationVariants.all { variants →
outputs.all {
// move it up one level to help with path limit (app/build/outputs/apk/app-debug.apk or app-release.apk)
outputFileName = “…/” + outputFileName
}
}
}

tasks.whenTaskAdded { task →
if (task.name == ‘packageDebug’) {
tasks.create(name:‘ueDeleteOldPackageDebug’) {
doLast {
delete(‘build/outputs/apk/app-debug.apk’)
delete(‘build/outputs/apk/debug/output.json’)
}
}

task.dependsOn('ueDeleteOldPackageDebug')

}
if (task.name == ‘packageRelease’) {
tasks.create(name:‘ueDeleteOldPackageRelease’) {
doLast {
delete(‘build/outputs/apk/app-release.apk’)
delete(‘build/outputs/apk/release/output.json’)
}
}

task.dependsOn('ueDeleteOldPackageRelease')

}
if (task.name == ‘assembleRelease’) {
if (project.hasProperty(‘OUTPUT_FILENAME’)) {
tasks.create(name:‘ue4CompleteRelease’, type: Copy) {
description “Copy final release APK”
from ‘build/outputs/apk/app-release.apk’
into OUTPUT_PATH
rename (“app-release.apk”, OUTPUT_FILENAME)
}

	task.finalizedBy 'ue4CompleteRelease'
}

}
if (task.name == ‘assembleDebug’) {
if (project.hasProperty(‘OUTPUT_FILENAME’)) {
tasks.create(name:‘ue4CompleteDebug’, type: Copy) {
description “Copy final debug APK”
from ‘build/outputs/apk/app-debug.apk’
into OUTPUT_PATH
rename (“app-debug.apk”, OUTPUT_FILENAME)
}

	task.finalizedBy 'ue4CompleteDebug'
}

}
if (task.name == ‘bundleRelease’) {
if (project.hasProperty(‘OUTPUT_BUNDLEFILENAME’)) {
task.finalizedBy ‘ue4CompleteBundleRelease’

	tasks.create(name:'ue4CompleteBundleRelease', type: Copy) {
		description "Copy final release AAB"
		from 'build/outputs/bundle/release/app-release.aab'
		into OUTPUT_PATH
		rename ("app-release.aab", OUTPUT_BUNDLEFILENAME)
	}

	if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
		tasks.create(name:'ue4ExtractUniversalAPKRelease', type: JavaExec) {
			description "Extracts universal APK from APKS"
			main = "-jar"
			args = [
				"${GENUNIVERSALAPK_JAR}",
				"build/outputs/bundle/release/universal.apks",
				"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
			]
		}

		tasks.create(name:'ue4BuildUniversalAPKSRelease', type: JavaExec) {
			finalizedBy 'ue4ExtractUniversalAPKRelease'
			description "Builds universal APKS with bundletool"
			main = "-jar"
			args = [
				"${BUNDLETOOL_JAR}",
				"build-apks",
				"--bundle=build/outputs/bundle/release/app-release.aab",
				"--mode=universal",
				"--overwrite",
				"--output=build/outputs/bundle/release/universal.apks",
				"--ks=" + "${STORE_FILE}",
				"--ks-key-alias=" + "${KEY_ALIAS}",
				"--ks-pass=pass:" + "${STORE_PASSWORD}",
				"--key-pass=pass:" + "${KEY_PASSWORD}"
			]
		}

		task.finalizedBy 'ue4BuildUniversalAPKSRelease'
	}
}

}
if (task.name == ‘bundleDebug’) {
if (project.hasProperty(‘OUTPUT_BUNDLEFILENAME’)) {
task.finalizedBy ‘ue4CompleteBundleDebug’

	tasks.create(name:'ue4CompleteBundleDebug', type: Copy) {
		description "Copy final debug AAB"
		from 'build/outputs/bundle/debug/app-debug.aab'
		into OUTPUT_PATH
		rename ("app-debug.aab", OUTPUT_BUNDLEFILENAME)
	}

	if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
		tasks.create(name:'ue4ExtractUniversalAPKDebug', type: JavaExec) {
			description "Extracts universal APK from APKS"
			main = "-jar"
			args = [
				"${GENUNIVERSALAPK_JAR}",
				"build/outputs/bundle/debug/universal.apks",
				"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
			]
		}

		tasks.create(name:'ue4BuildUniversalAPKSDebug', type: JavaExec) {
			finalizedBy 'ue4ExtractUniversalAPKDebug'
			description "Builds universal APKS with bundletool"
			main = "-jar"
			args = [
				"${BUNDLETOOL_JAR}",
				"build-apks",
				"--bundle=build/outputs/bundle/debug/app-debug.aab",
				"--mode=universal",
				"--overwrite",
				"--output=build/outputs/bundle/debug/universal.apks"
			]
		}

		task.finalizedBy 'ue4BuildUniversalAPKSDebug'
	}
}

}
}

dependencies {
implementation fileTree(dir: ‘libs’, include: [‘.jar’])
implementation fileTree(dir: ‘src/main/libs’, include: ['.jar’])

implementation “android.arch.lifecycle:extensions:1.1.1”
annotationProcessor “android.arch.lifecycle:compiler:1.1.1”
}

this are all the above things you listed sir

This are my android studio 4.0 settings I use and also my UE4. 27.2 ( unreal luncher version)
Uploading: 7.png…


good day sir, i hope you are doing good today am sorry for not providing every info you need to know where the error is comming from but base on what you have said that you are not try packaging with Android API 35 i have now switch the Android API to 34 in my Android studio 4.0 but still got error and here is everything you need to maybe identify where the problem may be coming from. here is the log error i got when packaging +Files+Epic+Games+UE_4.27\PakList_CubeDash-Android_Multi.txt" -cryptokeys=“C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\Cooked\Android_Multi\CubeDash\Metadata\Crypto.json” -secondaryOrder=“C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log” -platform=Android -compressionformats=Oodle -compre
ssmethod=Kraken -compresslevel=7 -multiprocess -abslog=“C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UnrealPak-CubeDash-Android_Multi-2024.08.14-03.23.59.txt” -compressionblocksize=256KB
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: Loading text-based GConfig…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): OodleDataCompression: Display: Oodle v2.9.0 initializing with method=Kraken, level=7=Optimal3
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Parsing crypto keys from a crypto key cache file
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Loading response file C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\PakList_CubeDash-Android_Multi.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Added 2552 entries to add to pak file.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Loading pak order file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Finished loading pak order file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android_Multi\FileOpenOrder\CookerOpenOrder.log.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Collecting files to add to pak file…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Collected 2552 files in 0.02s.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Creating pak C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi\CubeDash\Content\Paks\CubeDash-Android_Multi.pak.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormats in priority order: Oodle, Zlib
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogDerivedDataCache: Display: Pak cache opened for reading …/…/…/Engine/DerivedDataCache/Compressed.ddp.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogDerivedDataCache: Display: Performance to C:/Users/harmony/AppData/Local/UnrealEngine/Common/DerivedDataCache: Latency=0.00ms. RandomReadSpeed=999.00MBs, RandomWriteSpeed=999.00MBs. Assigned SpeedClass ‘Local’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 0 [Oodle] : 1223 files, 1225835524 → 430051059 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 1 [Zlib] : 62 files, 3746162 → 1185508 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: CompressionFormat 2 [None] : 1267 files, 33401499 → 33401499 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Added 2552 files, 465071635 bytes total, time 336.49s.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: PrimaryIndex size: 59870 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: PathHashIndex size: 54917 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: FullDirectoryIndex size: 85093 bytes
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Compression summary: 35.07% of original size. Compressed Size 431236567 bytes, Original Size 1229581686 bytes.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Encryption - DISABLED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPakFile: Display: Unreal pak executed in 336.638162 seconds
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UnrealPak terminated with exit code 0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying NonUFSFiles to staging directory: C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** STAGE COMMAND COMPLETED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** PACKAGE COMMAND STARTED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BaseApkName = C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries/Android\CubeDash-Android-Shipping.apk
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi.obb from C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): [1/1] Adding CubeDash/Content/Paks/CubeDash-Android_Multi.pak to OBB
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: C:\Program Files\Epic Games\UE_4.27\Engine\Plugins\Marketplace\GoogleAdmobBlueprint\Source\GoogleAdmobBlueprint\GoogleAdmob_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\OnlineSubsystemGooglePlay_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Plugins\Runtime\GooglePAD\Source\GooglePAD\GooglePAD_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Source\Runtime\Online\Voice\AndroidVoiceImpl_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AndroidPlugin: Source\ThirdParty\GoogleGameSDK\GoogleGameSDK_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/GoogleAdmob_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Plugins/Runtime/GooglePAD/Source/GooglePAD/GooglePAD_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Source/Runtime/Online/Voice/AndroidVoiceImpl_UPL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL: Engine\Source/ThirdParty/GoogleGameSDK/GoogleGameSDK_APL.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target SDK Version 30
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Using package name: ‘YourCompany.CubeDash’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GotStoreVersion found v5. (bUseChangeListAsStoreVersion=False IsBuildMachine=False EngineChangeList=0)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Writing packageInfo pkgName:YourCompany.CubeDash storeVersion:5 versionDisplayName:1.0 to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries\Android\packageInfo.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:03 am====PREPARING TO MAKE APK=================================================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bBuildForES31: true
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bSupportsVulkan: true
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Building Java with SDK API level ‘android-34’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Building with Build Tools version ‘30.0.3’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to shim file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Shim data file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\AlarmReceiver.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\DownloaderActivity.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to template target file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash\OBBDownloaderService.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Cleaning up files based on template dir C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Cleaning up files based on template dir C:\Users\harmony\Documents\Unreal Projects\CubeDash\Build\Android\src\YourCompany\CubeDash
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Application display name is different than last build, forcing repackage.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL Init: armeabi-v7a
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Subsystem Google Play SDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Permission Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Google Cloud Messaging init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GCMClientSenderID set: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Disabled because not generating AAB bundle
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD enabled: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Voice init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GoogleGameSDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UPL Init: arm64-v8a
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Subsystem Google Play SDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Permission Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Google Cloud Messaging init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GCMClientSenderID set: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD Plugin Init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Disabled because not generating AAB bundle
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GooglePAD enabled: false
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android Voice init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GoogleGameSDK Android init
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): On build machine.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:19 am====PREPARING NATIVE CODE=====-armv7============================================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): bPackageDataInsideApk = True
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb location C:\Users\harmony\Documents\Unreal Projects\CubeDash/Saved/StagedBuilds/Android_Multi.obb
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb destination location C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7/assets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Obb file exists…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash/Saved/StagedBuilds/Android_Multi.obb to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7/assets\main.obb.png
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): UE4CommandLine.txt exists…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash\Saved\StagedBuilds\Android_Multi\UE4CommandLine.txt to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\assets\UE4CommandLine.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\google\m2repository
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\android\m2repository
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-auth, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-games, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-nearby, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AARImports: com.google.android.gms, play-services-plus, 11.8.0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying Google Play BillingApiV2 java files
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/BillingApiV2 copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/src
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying permission_library directory to staging before build
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/JavaLibs/permission_library
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing to OBB data file C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\YourCompany\CubeDash\OBBData.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing new GameActivity.java file to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ==== Writing new GameApplication.java file to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\src\com\epicgames\ue4\GameApplication.java ====
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying new .so C:\Users\harmony\Documents\Unreal Projects\CubeDash\Binaries\Android\CubeDash-Android-Shipping-armv7.so file to jni folder…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/…/…/…/…/google-services.json does not exist, not copied!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/…/…/…/google-services.json copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/app/google-services.json
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Marketplace/GoogleAdmobBlueprint/Source/GoogleAdmobBlueprint/…/…/…/…/google-services.json does not exist, not copied!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/…/…/…/google-services.json copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/AFSProject/app/google-services.json
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying libplaycore.so and proguard files
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/…/ThirdParty/play-core-native-sdk/libs/armeabi-v7a/ndk21.4.7075529/c++_shared/libplaycore.so copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/libs/armeabi-v7a/libplaycore.so
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/…/ThirdParty/play-core-native-sdk/proguard copied to C:/Users/harmony/Documents/Unreal Projects/CubeDash/Intermediate/Android/armv7/gradle/app/proguard
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ====14/08/2024 3:30:37 am====PERFORMING FINAL APK PACKAGE OPERATION=====-armv7===========================================
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Copying C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\AndroidManifest.xml to C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\gradle\app\src\main\AndroidManifest.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Making .apk with Gradle…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: The Gradle Daemon.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Daemon will be stopped at the end of the build stopping after processing
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:extractProguardFiles
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:preReleaseBuild
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:preReleaseBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseAidl NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:preReleaseBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseAidl NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseAidl
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseGoogleServices
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseResValues
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:createReleaseCompatibleScreenManifests
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:extractDeepLinksRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseLibraryResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseLibraryResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseManifest
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:parseReleaseLocalResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:parseReleaseLocalResources
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:javaPreCompileRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:packageReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:mergeReleaseShaders
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeReleaseAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateReleaseRFile
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileReleaseJavaWithJavac
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Note: Z:\permission_library\src\main\java\com\google\vr\sdk\samples\permission\PermissionFragment.java uses or overrides a deprecated API.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:generateReleaseRFile
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processReleaseResources FAILED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:bundleLibCompileToJarRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 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:processReleaseResources’.
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 2m 47s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 37 actionable tasks: 37 executed
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: cmd.exe failed with args /c “C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): (see C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
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

THIS IS MY MY ANDROID STUDIO 4.0 SETTING

THIS IS ALSO MY UNREAL ENGINE 4.27.2 SETTINGS

HERE IS THE SOURCE CODE FOR THE = BUILD.GRADLE IN ENGINE / BUILD / ANDROID / JAVA / GRADLE / APP

apply plugin: ‘com.android.application’

android {
compileSdkVersion = COMPILE_SDK_VERSION.toInteger()
buildToolsVersion = BUILD_TOOLS_VERSION
defaultConfig {
applicationId = PACKAGE_NAME
minSdkVersion = MIN_SDK_VERSION.toInteger()
targetSdkVersion = TARGET_SDK_VERSION.toInteger()
versionCode = STORE_VERSION.toInteger()
versionName = VERSION_DISPLAY_NAME
}
}

apply from: ‘buildAdditions.gradle’

android {

// work in progress
//externalNativeBuild {
//	cmake {
//		path 'CMakeLists.txt'
//	}
//}

sourceSets.main {
	// disable generation of Android.mk
	jni.srcDirs = []
	
	jniLibs.srcDirs = ['src/main/jniLibs', 'src/main/libs']
	
	// aidl in java directories
	aidl.srcDirs = java.srcDirs
}

lintOptions {
	// uncomment to get a report
	//htmlOutput file("lint-report.html")

	// turn this back on if you want to check
	checkReleaseBuilds false
	
	// this will prevent it from stopping if above is true and an issue is found
	abortOnError false
}

applicationVariants.all { variants ->
	outputs.all {
		// move it up one level to help with path limit (app/build/outputs/apk/app-debug.apk or app-release.apk)
		outputFileName = "../" + outputFileName
	}
}

}

tasks.whenTaskAdded { task →
if (task.name == ‘packageDebug’) {
tasks.create(name:‘ueDeleteOldPackageDebug’) {
doLast {
delete(‘build/outputs/apk/app-debug.apk’)
delete(‘build/outputs/apk/debug/output.json’)
}
}

	task.dependsOn('ueDeleteOldPackageDebug')
}
if (task.name == 'packageRelease') {
	tasks.create(name:'ueDeleteOldPackageRelease') {
		doLast {
			delete('build/outputs/apk/app-release.apk')
			delete('build/outputs/apk/release/output.json')
		}
	}
	
	task.dependsOn('ueDeleteOldPackageRelease')
}
if (task.name == 'assembleRelease') {
	if (project.hasProperty('OUTPUT_FILENAME')) {
		tasks.create(name:'ue4CompleteRelease', type: Copy) {
			description "Copy final release APK"
			from 'build/outputs/apk/app-release.apk'
			into OUTPUT_PATH
			rename ("app-release.apk", OUTPUT_FILENAME)
		}

		task.finalizedBy 'ue4CompleteRelease'
	}
}
if (task.name == 'assembleDebug') {
	if (project.hasProperty('OUTPUT_FILENAME')) {
		tasks.create(name:'ue4CompleteDebug', type: Copy) {
			description "Copy final debug APK"
			from 'build/outputs/apk/app-debug.apk'
			into OUTPUT_PATH
			rename ("app-debug.apk", OUTPUT_FILENAME)
		}

		task.finalizedBy 'ue4CompleteDebug'
	}
}
if (task.name == 'bundleRelease') {
	if (project.hasProperty('OUTPUT_BUNDLEFILENAME')) {
		task.finalizedBy 'ue4CompleteBundleRelease'

		tasks.create(name:'ue4CompleteBundleRelease', type: Copy) {
			description "Copy final release AAB"
			from 'build/outputs/bundle/release/app-release.aab'
			into OUTPUT_PATH
			rename ("app-release.aab", OUTPUT_BUNDLEFILENAME)
		}

		if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
			tasks.create(name:'ue4ExtractUniversalAPKRelease', type: JavaExec) {
				description "Extracts universal APK from APKS"
				main = "-jar"
				args = [
					"${GENUNIVERSALAPK_JAR}",
					"build/outputs/bundle/release/universal.apks",
					"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
				]
			}

			tasks.create(name:'ue4BuildUniversalAPKSRelease', type: JavaExec) {
				finalizedBy 'ue4ExtractUniversalAPKRelease'
				description "Builds universal APKS with bundletool"
				main = "-jar"
				args = [
					"${BUNDLETOOL_JAR}",
					"build-apks",
					"--bundle=build/outputs/bundle/release/app-release.aab",
					"--mode=universal",
					"--overwrite",
					"--output=build/outputs/bundle/release/universal.apks",
					"--ks=" + "${STORE_FILE}",
					"--ks-key-alias=" + "${KEY_ALIAS}",
					"--ks-pass=pass:" + "${STORE_PASSWORD}",
					"--key-pass=pass:" + "${KEY_PASSWORD}"
				]
			}

			task.finalizedBy 'ue4BuildUniversalAPKSRelease'
		}
	}
}
if (task.name == 'bundleDebug') {
	if (project.hasProperty('OUTPUT_BUNDLEFILENAME')) {
		task.finalizedBy 'ue4CompleteBundleDebug'

		tasks.create(name:'ue4CompleteBundleDebug', type: Copy) {
			description "Copy final debug AAB"
			from 'build/outputs/bundle/debug/app-debug.aab'
			into OUTPUT_PATH
			rename ("app-debug.aab", OUTPUT_BUNDLEFILENAME)
		}

		if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
			tasks.create(name:'ue4ExtractUniversalAPKDebug', type: JavaExec) {
				description "Extracts universal APK from APKS"
				main = "-jar"
				args = [
					"${GENUNIVERSALAPK_JAR}",
					"build/outputs/bundle/debug/universal.apks",
					"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
				]
			}

			tasks.create(name:'ue4BuildUniversalAPKSDebug', type: JavaExec) {
				finalizedBy 'ue4ExtractUniversalAPKDebug'
				description "Builds universal APKS with bundletool"
				main = "-jar"
				args = [
					"${BUNDLETOOL_JAR}",
					"build-apks",
					"--bundle=build/outputs/bundle/debug/app-debug.aab",
					"--mode=universal",
					"--overwrite",
					"--output=build/outputs/bundle/debug/universal.apks"
				]
			}

			task.finalizedBy 'ue4BuildUniversalAPKSDebug'
		}
	}
}

}

dependencies {
implementation fileTree(dir: ‘libs’, include: [‘.jar’])
implementation fileTree(dir: ‘src/main/libs’, include: ['
.jar’])

implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"

}

HERE IS THE AndroidManifest.xml in Engine → Build → Android → Java → JavaLibs → downloder_library

This is the app build.gradle in Engine → Build → Android → Java → gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath project.hasProperty(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) ? project.property(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) : ‘com.android.tools.build:gradle:3.5.3’

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
apply from: 'buildscriptAdditions.gradle', to: buildscript

}

apply from: ‘baseBuildAdditions.gradle’

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

This is the AndroidManifest.xml in Engine → Source → ThirdParty → AndroidPermission → permission_library

This is the build.gradle in Engine → Build → Android → Java → gradle → app

apply plugin: ‘com.android.application’

android {
compileSdkVersion = COMPILE_SDK_VERSION.toInteger()
buildToolsVersion = BUILD_TOOLS_VERSION
defaultConfig {
applicationId = PACKAGE_NAME
minSdkVersion = MIN_SDK_VERSION.toInteger()
targetSdkVersion = TARGET_SDK_VERSION.toInteger()
versionCode = STORE_VERSION.toInteger()
versionName = VERSION_DISPLAY_NAME
}
}

apply from: ‘buildAdditions.gradle’

android {

// work in progress
//externalNativeBuild {
//	cmake {
//		path 'CMakeLists.txt'
//	}
//}

sourceSets.main {
	// disable generation of Android.mk
	jni.srcDirs = []
	
	jniLibs.srcDirs = ['src/main/jniLibs', 'src/main/libs']
	
	// aidl in java directories
	aidl.srcDirs = java.srcDirs
}

lintOptions {
	// uncomment to get a report
	//htmlOutput file("lint-report.html")

	// turn this back on if you want to check
	checkReleaseBuilds false
	
	// this will prevent it from stopping if above is true and an issue is found
	abortOnError false
}

applicationVariants.all { variants ->
	outputs.all {
		// move it up one level to help with path limit (app/build/outputs/apk/app-debug.apk or app-release.apk)
		outputFileName = "../" + outputFileName
	}
}

}

tasks.whenTaskAdded { task →
if (task.name == ‘packageDebug’) {
tasks.create(name:‘ueDeleteOldPackageDebug’) {
doLast {
delete(‘build/outputs/apk/app-debug.apk’)
delete(‘build/outputs/apk/debug/output.json’)
}
}

	task.dependsOn('ueDeleteOldPackageDebug')
}
if (task.name == 'packageRelease') {
	tasks.create(name:'ueDeleteOldPackageRelease') {
		doLast {
			delete('build/outputs/apk/app-release.apk')
			delete('build/outputs/apk/release/output.json')
		}
	}
	
	task.dependsOn('ueDeleteOldPackageRelease')
}
if (task.name == 'assembleRelease') {
	if (project.hasProperty('OUTPUT_FILENAME')) {
		tasks.create(name:'ue4CompleteRelease', type: Copy) {
			description "Copy final release APK"
			from 'build/outputs/apk/app-release.apk'
			into OUTPUT_PATH
			rename ("app-release.apk", OUTPUT_FILENAME)
		}

		task.finalizedBy 'ue4CompleteRelease'
	}
}
if (task.name == 'assembleDebug') {
	if (project.hasProperty('OUTPUT_FILENAME')) {
		tasks.create(name:'ue4CompleteDebug', type: Copy) {
			description "Copy final debug APK"
			from 'build/outputs/apk/app-debug.apk'
			into OUTPUT_PATH
			rename ("app-debug.apk", OUTPUT_FILENAME)
		}

		task.finalizedBy 'ue4CompleteDebug'
	}
}
if (task.name == 'bundleRelease') {
	if (project.hasProperty('OUTPUT_BUNDLEFILENAME')) {
		task.finalizedBy 'ue4CompleteBundleRelease'

		tasks.create(name:'ue4CompleteBundleRelease', type: Copy) {
			description "Copy final release AAB"
			from 'build/outputs/bundle/release/app-release.aab'
			into OUTPUT_PATH
			rename ("app-release.aab", OUTPUT_BUNDLEFILENAME)
		}

		if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
			tasks.create(name:'ue4ExtractUniversalAPKRelease', type: JavaExec) {
				description "Extracts universal APK from APKS"
				main = "-jar"
				args = [
					"${GENUNIVERSALAPK_JAR}",
					"build/outputs/bundle/release/universal.apks",
					"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
				]
			}

			tasks.create(name:'ue4BuildUniversalAPKSRelease', type: JavaExec) {
				finalizedBy 'ue4ExtractUniversalAPKRelease'
				description "Builds universal APKS with bundletool"
				main = "-jar"
				args = [
					"${BUNDLETOOL_JAR}",
					"build-apks",
					"--bundle=build/outputs/bundle/release/app-release.aab",
					"--mode=universal",
					"--overwrite",
					"--output=build/outputs/bundle/release/universal.apks",
					"--ks=" + "${STORE_FILE}",
					"--ks-key-alias=" + "${KEY_ALIAS}",
					"--ks-pass=pass:" + "${STORE_PASSWORD}",
					"--key-pass=pass:" + "${KEY_PASSWORD}"
				]
			}

			task.finalizedBy 'ue4BuildUniversalAPKSRelease'
		}
	}
}
if (task.name == 'bundleDebug') {
	if (project.hasProperty('OUTPUT_BUNDLEFILENAME')) {
		task.finalizedBy 'ue4CompleteBundleDebug'

		tasks.create(name:'ue4CompleteBundleDebug', type: Copy) {
			description "Copy final debug AAB"
			from 'build/outputs/bundle/debug/app-debug.aab'
			into OUTPUT_PATH
			rename ("app-debug.aab", OUTPUT_BUNDLEFILENAME)
		}

		if (project.hasProperty('OUTPUT_UNIVERSALFILENAME')) {
			tasks.create(name:'ue4ExtractUniversalAPKDebug', type: JavaExec) {
				description "Extracts universal APK from APKS"
				main = "-jar"
				args = [
					"${GENUNIVERSALAPK_JAR}",
					"build/outputs/bundle/debug/universal.apks",
					"${OUTPUT_PATH}/${OUTPUT_UNIVERSALFILENAME}"
				]
			}

			tasks.create(name:'ue4BuildUniversalAPKSDebug', type: JavaExec) {
				finalizedBy 'ue4ExtractUniversalAPKDebug'
				description "Builds universal APKS with bundletool"
				main = "-jar"
				args = [
					"${BUNDLETOOL_JAR}",
					"build-apks",
					"--bundle=build/outputs/bundle/debug/app-debug.aab",
					"--mode=universal",
					"--overwrite",
					"--output=build/outputs/bundle/debug/universal.apks"
				]
			}

			task.finalizedBy 'ue4BuildUniversalAPKSDebug'
		}
	}
}

}

dependencies {
implementation fileTree(dir: ‘libs’, include: [‘.jar’])
implementation fileTree(dir: ‘src/main/libs’, include: ['
.jar’])

implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"

}

this are all the above things you listed sir

Hello, I checked it, based on the errors and the settings you have on the pictures, you are targeting SDK 30, not 34 or 35, the “Target SDK Version” in Project → Android, is the target version.

Also in the build.gradle (not the app build.gradle) you have this line

classpath project.hasProperty(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) ? project.property(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) : ‘com.android.tools.build:gradle:3.5.3’

which is there by default, not sure what the variables hold, but it definetely sets an older version of AGP (android gradle plugin which is the com.android.tools.build:gradle)

You will have to setup these things correctly, because its not even building to SDK34, and lots of stuff are using outdated versions.

I started making the tutorial about how to do this because there are lots of stuff, so I will finish that today and I will post the link here.

And one more thing, you can also format your code here, you can put code between these aposthrophes ``, to format in one line, like this, or you can also do codeblock by 3 of these at the start and end

codeblock

But you can also use the formatter builtin in the toolbar above. Just so this helps with code readability.

1 Like

Alright sir thanks so much for taking your time to try and help me out with a solution I am so much grateful :pray:

1 Like

Tutorial is done

1 Like

Alright sir let me check it out :heart:

1 Like

worked for me!

Good day sir I hope you’re having a a great day over there thanks for the tutorial you gave me on how to package my game with SDK 34 and I’m super grateful for that sir.
I have a little problem over here sir after setting everything you showed me on the tutorial I got a little error I am just guessing it may be a Gradle issue or something but am not even sure, here it is sir.

Making .apk with Gradle…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to Gradle Daemon in the Gradle documentation.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Daemon will be stopped at the end of the build
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Where:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Build file ‘X:\app\build.gradle’ line: 1
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * What went wrong:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): A problem occurred evaluating project ‘:app’.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > org/gradle/initialization/BuildCompletionListener
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Try:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > 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)): Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED in 37s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: cmd.exe failed with args /c “C:\Users\harmony\Documents\Unreal Projects\CubeDash\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): (see C:\Users\harmony\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
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

https://youtu.be/oE-a6IRhc7k?si=vrWwjxdO1H8T-jEQ

Try this method It worked for me

My game on playstore with sdk 35