Thank you very much my friend. I got the happy ending. It was a job and I got paid. You’ve made me very happy. I will not be in the environment for 6 months to do military service. but I want to do something for you after you come back.
ideally the engine should pack the aab file without errors … so if you pack the apk file without problems … but aab has an error then the problem still exists
i think the ERROR: cmd.exe failed with args /c “X:XXXXXXX\Android\gradle\rungradle.bat” :app:bundleRelease is related to Android API 33.
Before now ,in order to packag apk with UE4.27, i clean the Android Environment. This resulted in me not being able to package in Unity. Unity can only use NDK r19,but UE4.27 can only use NDK r21.
I have the same problem. How to fix the aab problem? I need to publish in the market, so i must build a file aab.
This is my Mac environment:
UE4.26
AndroidSDK 30
NDK 21
r21e
java version “18.0.2.1” 2022-08-18
Java™ SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot™ 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
Based on the error message you provided, it seems that the build process for your Android app is failing due to an “array size too large” error. This could be caused by a variety of factors, such as a memory issue, an issue with the Gradle build system, or an issue with the app code itself.
Here are a few things you could try to troubleshoot the issue:
Check your build configuration: Make sure that your build configuration is set up correctly and that you are using the appropriate version of Gradle. You can also try increasing the heap size of the Gradle daemon by adding the following line to your gradle.properties file: org.gradle.jvmargs=-Xmx4096m
Review your code: If you have made any recent changes to your app code, review them carefully to see if there are any arrays or data structures that could be causing the issue. Make sure that you are not exceeding any limits on array size or memory usage.
Check your hardware: It’s possible that the issue could be related to your computer’s hardware. Make sure that you have enough free memory and disk space, and that your CPU is not being overwhelmed by other processes.
Consult the Gradle documentation: If none of the above steps solve the issue, consult the Gradle documentation or seek help from the Gradle community to see if there are any known issues or solutions related to “array size too large” errors.
I hope these suggestions help you resolve the issue and successfully build your Android app. Good luck!