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)