transformClassesWithDexForReleasejava.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

  1. 0

    Cordova relese build fails :transformClassesWithDexForRelease value 1

    Stack Overflow | 3 months ago | Przemysław Zamorski
    transformClassesWithDexForReleasejava.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

    Root Cause Analysis

    1. transformClassesWithDexForReleasejava.lang.UnsupportedClassVersionError

      com/android/dx/command/Main : Unsupported major.minor version 52.0

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      LauncherHelper.checkAndLoadMain
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      5. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      6. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      7. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      10. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      12. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      13. sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
      13 frames