Mac // Android packagement error: Unsupported major.minor version 52.0

Sorry I’m not able to provide any replicating steps cuz I can’t find out the exact part which causes the error :frowning:
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.

I’ll just wait for this patiently

,

  • Could you upload the whole output log as a .txt file with your next reply?
  • Does this happen in 4.13 Preview 3?
  • Please provide me screenshots of your Android SDK and your SDK Manager.

Looking forward to hearing back, thanks!

[link text][1]

105607-log.txt (41 KB)

,

  • Does this happen in 4.13?
  • Are you able to replicate the same issue with a blank template?

Could you please show me how your Android SDK is set up?

![98373-androidsdk.jpg|604x316](

Also show me how your SDK Manager is set up: CodeWorks for Android 1R4u2.

,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!