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 Ajay Yadiki
, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via java.net by Unknown author, 1 year ago
Bad version number in .class file at java.lang. .defineClass1(Native Method) at java.lang. .defineClass( .java:620)
via GitHub by Kabato
, 1 year ago
net/altdispenser/altloader/AltLoader : Unsupported major.minor version 52.0
via Oracle Community by 693129, 1 year ago
unsupported classversion 50.0 at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
via izpack.org by Unknown author, 1 year ago
com/github/sa rdine/Sardine : Unsupported major.minor version 51.0 at java.lang. .defineClass1(Native Method) at java.lang. .defineClassCond(Unknown Source) at java.lang. .defineClass(Unknown Source)
via ibm.com by Unknown author, 1 year ago
JVMCFRE003 bad major version; class=com/ibm/tivoli/maximo/report/birt/servlet/ReportWebAppStartupServlet, offset=6
java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
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.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.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 2 days ago
2 times, 7 months ago
64 more bugmates

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