Sorry, I had given up a bit and am only now replying. Initially, I had reduced the size of the images in my game, thinking that would work around the problem. But I realized that my game was loading too much at launch (in short, I was using hard references instead of soft references—more information on this topic RAM spiking when launching game).
Now I no longer have the “array size too large” problem, but I’m still troubled by another error:
UATHelper: Packaging (Android (ASTC)): > Task :permission_library:writeDebugAarMetadata
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:writeDebugAarMetadata
UATHelper: Packaging (Android (ASTC)): > Task :app:javaPreCompileDebug
UATHelper: Packaging (Android (ASTC)): > Task :app:checkDebugAarMetadata
UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugAidl FAILED
UATHelper: Packaging (Android (ASTC)): ERROR: Z:\app\src\main\java\bewolftreize\LustnFarm\ILicenseResultListener.aidl:1.1-2: syntax error, unexpected ‘<’
UATHelper: Packaging (Android (ASTC)): > Task :app:processDebugManifestForPackage
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:parseDebugLocalResources
UATHelper: Packaging (Android (ASTC)): > Task :app:bundleDebugResources
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:compileDebugAidl’.
UATHelper: Packaging (Android (ASTC)): > A failure occurred while executing com.android.build.gradle.tasks.AidlCompile$AidlCompileRunnable
UATHelper: Packaging (Android (ASTC)): > com.android.ide.common.process.ProcessException: Error while executing process C:\Users\ORDENADOR\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe with arguments {-pC:\Users\ORDENADOR\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\ORDENADOR.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\ORDENADOR.gradle\caches\transforms-3\0b8921ecb709d584d59cb98b15117b47\transfo
rmed\core-1.2.0\aidl -IC:\Users\ORDENADOR.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed\versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\ORDENA~1\AppData\Local\Temp\aidl15540128705658342683.d Z:\app\src\main\java\bewolftreize\LustnFarm\ILicenseResultListener.aidl}
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
UATHelper: Packaging (Android (ASTC)): 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 (ASTC)): See Command-Line Interface
UATHelper: Packaging (Android (ASTC)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (ASTC)): 33 actionable tasks: 33 executed
UATHelper: Packaging (Android (ASTC)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ASTC)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 24s
UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c “C:\Users\ORDENADOR\Documents\Unreal Projects\LustnFarm5 - Espoir\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\ORDENADOR\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 4m 50s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error
ILicenseResultListener.aidl:1.1-2: syntax error, unexpected ‘<’
I’ve tried 30 times to replace this file or its code, but nothing works.