If the JDK version is too high, the android program fails to reference the jar program.

Source: Internet
Author: User

Recently, an error occurred while referencing another self-written JAR file in an android project. The error is that the class cannot be found when the android simulator is running after the jar is referenced in the eclipse build path. The class file generated by JDK cannot be recognized by the Dalvik Virtual Machine of Android. A tool is required to convert the class file into a format that can be recognized by the Dalvik virtual machine, the tool cannot identify the class files generated using JDK. Therefore, classes in the jar file are automatically ignored when packaged into an APK, and are not packaged into the APK file, leading to problems described at the beginning of this article. After the JDK version is reduced to 1.6 in the project attribute, the problem is solved.

Related Article

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.