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


Samebug tips

Update "latest" to Java 8 on DockerHub.


,
via Google Groups by Marcus Haebler

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


,
via GitHub by Athou

Solutions on the web

Solution icon of stackoverflow
com/android/dx/command/Main : Unsupported major.minor version 52.0

Solution icon of web
via codegur.com by Unknown author, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0

Solution icon of stackoverflow
via Stack Overflow by ian
, 1 year 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

Solution icon of web
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)

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 3 weeks ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
2 times, 6 months ago
63 more bugmates