Hello
I tried to build my Project using the Engine in Version 4.8.1. I already searched for this Issue, and people say that u need to create a Keystore file or update the Android SDK - i tried both and none did fixed this issue - then i tried using the Enviroment Variable _JAVA_OPTIONS setting it’s Memory to 512Mb and setted it up to 2Gb but it also doesn’t helped. Then i thought it may be a problem with Java version 8, so i installed JRE 7. but this also did not help. I have no more Ideas what i could try to solve this problem.
May someone here knows how to fix it.
down below i have a couple of lines from my output log - you can see much more on UE4 Build Log - Pastebin.com
Output Log
K\JavaLibs\downloader_library\bin\classes.jar
-> classes-a49c087ad0ddab592ede1b635801eac0.jar
**LogPlayLevel: [dx] Could not create the Java virtual machine.
LogPlayLevel: [dx] Error occurred during initialization of VM
LogPlayLevel: [dx] Could not reserve enough space for object heap**
LogPlayLevel: BUILD FAILED
LogPlayLevel: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:888: The following error occurred while executing this line:
LogPlayLevel: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:890: The following error occurred while executing this line:
LogPlayLevel: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:902: The following error occurred while executing this line:
LogPlayLevel: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:283: null returned: 1
LogPlayLevel: Total time: 15 seconds
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat" debug
[...]
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error