Android Question Error During Compile java.lang.UnsupportedClassVersionError

Mark Hollingworth

Member
Licensed User
Longtime User
I am getting the following error while trying to compile apps, it has been working fine, I wanted to try the GPS example in the User guide and this error has now started happening (not sure if it is related). The error is happening on everything I try to compile even things that were ok a couple of days ago and havent been changed... (I am using B4A 7.80)

B4X:
java.lang.UnsupportedClassVersionError: com/android/dx/command/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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main"
 

Mark Hollingworth

Member
Licensed User
Longtime User
Thanks Don,

should have done that myself now I feel silly

I still find it odd that it just 'happened' since nothing has changed not sure why it just stopped. I will install Java 8 (looks like I had 7 installed)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…