Unsupported major.minor version 52.0

Create issue
Issue #131 closed
Former user created an issue

Hi there!

I'm using Ubuntu 14.04.4 LTS. I tracked the Building Löve for Android on Linux guide. I downloaded the latest SDK (r24.4.1) and NDK (r12b 64bit) and openjdk-7* stuffs. There is no other Java version on my PC. Updated the SDK as the guide says and the NDK executed properly. After that when I wanted to build the APK, an error occured: 'Unsupported major.minor version 52.0'.

Well, that's the story. If you can help, then please help. :)

Thanks Adam

Comments (6)

  1. Bart van Strien

    Everything I can find suggests this specific error means you're trying to run a java/jdk 8 class using an older jdk. Additionally, it seems from SDK version 24 onwards, the android sdk requires jdk8.

    This leaves two options:

    • Upgrade to JDK8
    • Downgrade to SDK version 23 (or older)
  2. Fernando Paredes Garcia

    This is pretty annoying!

    These are the fixes I tried:

    A. "52.0" means that you require JDK 8, but it is not supported yet (you can run Android Studio with JDK 8 but you can't compile with it, so you need to compile with JDK 7. Create a file named ant.properties in project root with the following contents:


    B. Newer versions of Android Studio comes with Android SDK Build-Tools 24 (or higher) so uninstall it and install 23.0.1 instead (that version specifically)

    I guess B. is the actual fix but I tried A. as well so let me know what works.

  3. Log in to comment