java.lang.UnsupportedClassVersionError: com/android/dx/command/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 CHUPA1606
, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via codegur.com by Unknown author, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via yahoo.com by Unknown author, 2 years ago
HelloUser: Unsupported major.minor version 51.0 at java.lang.Classloader.defineClass1(Nativ... Method) at java.lang.Classloader.defineClassCond(Un... Source) at java.lang.Classloader.defineClass(Unknow... Source) at java.security.SecureClassLoader.defineCl... Source) at java.net.URLClassLoader.defineClass(Unkn... Source) at java.net.URLClassLoader.access$000(Unkno... Source)
via Stack Overflow by ian
, 2 years ago
ten/plus/Game : Unsupported major.minor version 52.0 14-07-29 8:57:02.190 AM [0x0-0x1c21c2].10Plus: at java.lang.ClassLoader.defineClass1(Native Method) 14-07-29 8:57:02.190 AM [0x0-0x1c21c2].10Plus: at java.lang.ClassLoader.defineClassCond
java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Users with the same issue

You are the first who have seen this exception.

Write tip

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