Hi all,
I’m facing terrible errors that are driving me crazy!
I have a VR project on UE 5.2, it’s runing fine, but I can’t compile!
I compiled once, everything went well, I changed the starting map and now I can’t compile!
I got many many errors, first it was saying the sdk version was wrong, now it shows all of these errors:
UATHelper: Packaging (Android (ASTC)): WARNING: The APKs won’t be signed and thus not installable unless you also pass a keystore via the flag --ks. See the command help for more information.
PackagingResults: Warning: The APKs won’t be signed and thus not installable unless you also pass a keystore via the flag --ks. See the command help for more information.
UATHelper: Packaging (Android (ASTC)): Exception in thread “main” java.lang.OutOfMemoryError: Requested array size exceeds VM limit
UATHelper: Packaging (Android (ASTC)): at java.io.ByteArrayOutputStream.(ByteArrayOutputStream.java:77)
UATHelper: Packaging (Android (ASTC)): at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:165)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.io.ZipBuilder.writeTo(ZipBuilder.java:92)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.io.ApkSetBuilderFactory$ApkSetArchiveBuilder.writeTo(ApkSetBuilderFactory.java:173)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.commands.BuildApksManager.executeWithZip(BuildApksManager.java:246)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.commands.BuildApksManager.execute(BuildApksManager.java:121)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.commands.BuildApksCommand.execute(BuildApksCommand.java:549)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:74)
UATHelper: Packaging (Android (ASTC)): at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:46)
PackagingResults: Error: Requested array size exceeds VM limit
UATHelper: Packaging (Android (ASTC)): > Task :app:ueBuildUniversalAPKSDebug FAILED
UATHelper: Packaging (Android (ASTC)): > Task :app:ueExtractUniversalAPKDebug FAILED
UATHelper: Packaging (Android (ASTC)): ERROR: Unable to find AAB: build/outputs/bundle/debug/universal.apks
PackagingResults: Error: Unable to find AAB: build/outputs/bundle/debug/universal.apks
UATHelper: Packaging (Android (ASTC)): FAILURE: Build completed with 2 failures.
UATHelper: Packaging (Android (ASTC)): 64 actionable tasks: 64 executed
UATHelper: Packaging (Android (ASTC)): 1: Task failed with an exception.
UATHelper: Packaging (Android (ASTC)): -----------
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:ueBuildUniversalAPKSDebug’.
UATHelper: Packaging (Android (ASTC)): > Process ‘command ‘C:\Program Files\Java\jdk1.8.0_77\bin\java.exe’’ finished with non-zero exit value 1
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): 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 (ASTC)): ==============================================================================
UATHelper: Packaging (Android (ASTC)): 2: Task failed with an exception.
UATHelper: Packaging (Android (ASTC)): -----------
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:ueExtractUniversalAPKDebug’.
UATHelper: Packaging (Android (ASTC)): > Process ‘command ‘C:\Program Files\Java\jdk1.8.0_77\bin\java.exe’’ finished with non-zero exit value -1
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): 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 (ASTC)): ==============================================================================
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 3m 10s
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c “D:\VM ARTES DIGITAIS\08 - UNREAL ENGINE\Distillery_VR\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\viham\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE_5.2\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 5m 45s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
PackagingResults: Error: cmd.exe failed with args /c “D:\VM ARTES DIGITAIS\08 - UNREAL ENGINE\Distillery_VR\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error
Any idea on how to fix it?
Thanks