I recently encountered more than N errors when I configured the android Development Environment on Ubuntu. Let's talk about it. If there is a similar error, just modify it. So far, the ADT version has been upgraded to 18. When the SDK version is upgraded to 4.0.3, the ADT version is required to be 17 or later. If any problem occurs after the upgrade, it may be caused by the JDK version. Please note that, adt17 requires that the JDK version be in JDK 1.6 or later.
When the ADT version is 17 or later, if a third-party jar package is referenced in the project, the Java. Lang. noclassdeffounderror error may occur and the referenced classes in the jar package cannot be found. How to modify it? In eclipse, the referenced third-party jar packages are all placed under lib and changed lib to libs. Someone may ask, if there is no lib folder, create a new libs folder, put the third-party class library in this folder, and an error will be reported at this time. You need to build the path again,
Under cleanCode.
IfArticleNot satisfied. It is recommended that you search for keywords:
Android ADT java. Lang. noclassdeffounderror
Instead of Java. Lang. noclassdeffounderror
Because the latter searches for most of the content about j2se and J2EE problems.
Continue compilation this morning and find the conversion to Dalvik format failed with error 1 error. If this problem occurs, first clean it. If it is not solved, open configure build path of build path, for example, check whether there are repeated jar packages. If yes, delete the repeated packages. You can.
If you have any questions, please leave a message.
Sometimes there may be conflicts between the imported package and the android package, and no error is reported on the project. However, the conversion to Dalvik format failed with error 1 error is reported during running, which is rare. If this error occurs, the above method cannot be solved. try to create a new project without writing code, import the package, run the check to check whether an error is returned, such as an error, delete one of the packages, and then run the check, in this way, the conflicting package may be found.