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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Google Groups by Marcus Haebler

Update "latest" to Java 8 on DockerHub.

,
via GitHub by Athou

You're using an older version of java with classes compiled for java7

Solutions on the web

via Stack Overflow by Hassan Ouhadou
, 1 year ago
com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
via Google Groups by Neil Chaudhuri, 1 year ago
com/typesafe/config/ConfigException : Unsupported major.minor version 52.0
via GitHub by joain946
, 1 year ago
com/inet/lib/less/Less : Unsupported major.minor version 52.0
via Google Groups by LUIS MANUEL MARQUEZ RODRIGUEZ, 5 months ago
com/openalpr/jni/Alpr : Unsupported major.minor version 52.0
via GitHub by heuermh
, 2 years ago
com/netflix/servo/tag/Tags : Unsupported major.minor version 52.0
via Stack Overflow by Syed Danish Ali
, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.jetbrains.android.compiler.tools.AndroidDxRunner.loadDex(AndroidDxRunner.java:79)
at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:136)
at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:336)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
338 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.