Sorry I’m not able to provide any replicating steps cuz I can’t find out the exact part which causes the error
The error occured under development mode and JDK 7 environment. The JAVA_HOME variable should have been set correclty.
Besides, the terminal returned ‘Buildfile: build.xml does not exist! Build failed’ after I typed ‘ant’ into it, that might be a clue to solve the problem.
Here’s the log, which recorded the packagement process:
Making .apk with Ant again to show errors
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono:
[dx] Exception in thread “main” java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:888: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:890: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:902: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: Making .apk with Ant again to show errors
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: [dx] Exception in thread “main” java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:888: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:890: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): mono: /Users///android-sdk-macosx/tools/ant/build.xml:902: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): /Users/Shared/UnrealEngine/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe VRStarter Android Development -prepfordeploy -project="/Users//Desktop/VRStart
MainFrameActions: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults:Error: Error Unknown Error
You can see that major.minor appeared several times.