Android packaging problems with JDK version errors

Source: Internet
Author: User

The problem with JDK version errors in Android packaging is essentially an SDK issue, regardless of the JDK. If the SDK API is 24 or higher, requires JDK 1.8, I specify the API here is 22, so go to the 22 SDK Platform to install.

[Dex] Pre-dexing D:\Jenkins\workspace\Android\Bugtags-Android-Eclipse-Lib\bin\classes.jar-classes-3f7282283aa00a87ee9fdbff3a356d8b.jar [DX] java.lang.UnsupportedClassVersionError:com/android/dx/command/main:unsupported Major.minor version 52.0[DX] at Java.lang.ClassLoader.defineClass1 (Native Method) [DX] at Java.lang.ClassLoader.defineCla SS (Classloader.java:800) [DX] at Java.security.SecureClassLoader.defineClass (Secureclassloader.java:142) [DX] at Java.net.URLClassLoader.defineClass (URLClassLoader.java:449) [DX] at java.net.urlclassloader.access$(urlclassloader.java:71) [DX] at java.net.urlclassloader$1.run (urlclassloader.java:361) [DX] at java.net.urlclassloader$1.run (urlclassloader.java:355) [DX] at java.security.AccessController.doPrivileged (Native Method) [DX] at Java.net.URLClassLoad Er.findclass (URLClassLoader.java:354) [DX] at Java.lang.ClassLoader.loadClass (Classloader.java:425) [DX] at Java.lang.ClassLoader.loadClass (Classloader.java:412) [DX] at Sun.misc.launcher$appclassloader.loadclass (Launcher.java:308) [DX] at Java.lang.ClassLoader.loadClass (Classloader.java:358) [DX] at Sun.launcher.LauncherHelper.checkAndLoadMain (Launcherhelper.java:482) [DX] Exception in thread"Main"

Android packaging problems with JDK version errors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.