One, all caused by a run-time error DALVIKVM Could not find class ' reference package. Class ', referenced from method ...
In fact, at compile time will also see the following error:
[DX]
[DX] Trouble processing:
[DX] Bad class file Magic (Cafebabe) or version (0033.0000)
[DX] ... while parsing com/novell/sasl/client/digestchallenge.class
[DX] ... while processing com/novell/sasl/client/digestchallenge.class
Second, try 1. Using JDK7
It is recommended to use JDK7 to solve similar problems, but I did not solve the problem.
2. Upgrade Build-tools
Let's talk about my development environment first.
That was the environment that was configured at the end of 2013, the ADT large version number is the 22,tools large version number is also 22,plantform-tools is already the newest 21,build-tools is 18.1.1.
After colleagues ' practice, the problem should be attributed to the low build-tools version.
Third, the latest development environment (Eclipse & ADT&SDK) 1. Upgrade of tools Here we will reconfigure the agent to download the latest tools and SDKs to the neusoft.edu.cn mirror site.
Launch Android SDK Manager (direct input to Android in command line), Tools--->options ..., pop-up Android SDK manager-settings window; in HTTP Proxy The server and HTTP Proxy port input boxes are populated with mirror.neusoft.edu.cn (note that there is no HTTP prefix) and 80, and the force https://... sources to be fetched using http://... check box. Then choose Packages--->reload.
At this point we will find that we have successfully taken to the packages, then we download it. In addition to the latest Android 5.0.1 has not yet been provided, the others are readily available.
Tools update to the latest is 24.0.2,
Build-tools I chose 19.1, 20 and 21.1.2, respectively, corresponding to API19 (4.4.2), API20 (L) and API21 (5.0).
Android 5.0 All selected.
2.ADT upgrade due to the more tools upgrade to the latest, then the ADT22 has expired and requires the use of 23 or more versions of ADT. Find good people uploaded by 23.03, installation found that the Eclipse version does not support the latest ADT (I use the Juno), well, since this is the new bar.
3.eclipse Luna is the latest version of Luna, or more than 130 trillion. Start directly after decompression.
4. Install ADT again at this point in the help--->install New software--->add, select the ADT23.03 zip package, "Contact all update sites during Install to find" Required Software. " Tick off.
Continue to complete the installation.
Everything is ready to bring in, compile, and memory problems with previously problematic projects.
There are two problems with Dex's problem:
1.unable to execute Dex:java heap space
2.Conversion to Dalvik format failed:unable to execute DEX:GC overhead limit exceeded
Configure the Eclipse.ini, change the xms40m and xmx512m to 126m and 1024m, this value according to their own machine configuration adjustment, as long as the good run OK.
$ cat eclipse.ini-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200. V20140603-1326-productorg.eclipse.epp.package.java.product--launcher.defaultactionopenfile-showsplashorg.eclipse.platform --launcher. xxmaxpermsize256m--launcher.defaultactionopenfile--launcher.appendvmargs-vmargs-dosgi.requiredjavaversion=1.6- xx:maxpermsize=256m-xms126m-xmx1028m
Restart, clean project, compile, pass! Run, Normal! This is where my latest Android development environment is built.
Five, the conclusion of keeping pace with the times of the mentality, stable new tools for our work a lot of benefits.
Android Combat Skill IX: The latest Android development environment (Eclipse+adt+android 5.0)