Android Development Java.lang.verifyError (reprint)

Source: Internet
Author: User

Original link:

Http://www.linuxidc.com/Linux/2012-08/67289.htm

Solution:

Recently in the development of an Android small project, encountered java.lang.verifyerror error and this error puzzled me for 2 days, no matter how I modify the code, the error is still prompt so, and then to the Internet to check that I import the jar when the file, although the files poured in, But there are some places in the import file that are not correct:

Step 1: Correct guide package such as:

Step 2: When we guide the package will generally click on the add jars that option, this is what we should note, next we should do the following step:

Go to order and export inside the hook, so that our verifyerror problem will be solved in general! Personally, the cause of this abnormality may be related to the Android ADT version. Because I use the 1.9 version of the work of the colleague is more ancient, of course, the other configuration is the same!

Issue to this resolution.

Summarize:

The original author took two days to solve the problem, and I spent two days, so where is the problem?

First understand the specific meaning of order and export in step 2 below:

Order is the sequence in which class is used (because a class with the same name may appear)
Export is to use some of the Lib and project at the same time release.

If it is not easy to understand, English-speaking students see the following content should be easier to understand:

    • Order--determine in which order projects and libraries appear in the classpath. If There is any duplicate classes, this determines which version is loaded
    • Export-----Determine which projects and libraries would be exported and thus available in other projects that depend on thi S one.

Cond...

Android Development Java.lang.verifyError (reprint)

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.