Title, the code is no longer wrong, but once it runs, it makes a mistake.
[2015-03-20 15:24:49-launcher] Dx 1 Error; Aborting
[2015-03-20 15:24:49-launcher] Conversion to Dalvik format failed with error 1
Check for a long time, because there is no clear direction, the reasons for the online said there are many, the solution is also a lot, but there is no solution, finally groped to solve the present problem.
Let's just say the way around.
Launcher source code to be compiled in eclipse, I imported the three jar package
Android-common_intermediates path for Android source under Android\out\target\common\obj\java_libraries\android-common_ Intermediates inside the Class.jar
Core_intermediates path for Android source under Android\out\target\common\obj\java_libraries\core_intermediates within the Class.jar
Framework_intermediates path for Android source under Android\out\target\common\obj\java_libraries\framework_intermediates Inside the Clas.jar
Android-support-v13.jar path in the SDK directory under \sdk\extras\android\support\v13 jar file
Add the three jar Pack add Library to the project in the user library and tick the system library. Move the top three packages above the Android API package under the Order and export option.
At this time launcher project there will not be so many errors, and then my project will also prompt the lack of a basicdream class, so the Internet to download the class, and in the SRC directory under the new
Android\support\v13\dreams directory, and copy Basicdream.java to this directory. Then refresh the project, then clean the project, so there is no error message.
Then I went straight to work, and there was the first mistake. Resolved as follows
Join in the Androidmanifest.xml
<USES-SDK android:minsdkversion= "16"
Android:targetsdkversion= "/>"
Then change the original. classpath file to the following format
<?xml Version= "1.0" encoding= "UTF-8"? ><classpath><classpathentry exported= "true" kind= "con" path= " Org.eclipse.jdt.user_library/android-common_intermediates "/><classpathentry exported=" true "kind=" con "path = "Org.eclipse.jdt.user_library/core_intermediates"/><classpathentry exported= "true" kind= "con" path= " Org.eclipse.jdt.user_library/framework_intermediates "/><classpathentry kind=" con "path=" Com.android.ide.eclipse.adt.ANDROID_FRAMEWORK "/><classpathentry kind=" Lib "path=" libs/ Android-support-v13.jar "/><classpathentry exported=" true "kind=" con "path=" Com.android.ide.eclipse.adt.LIBRARIES "/><classpathentry kind=" src "path=" src "/><classpathentry kind=" src "path=" gen "/><classpathentry kind=" Output "path=" bin/classes "/></CLASSPATH>
then compiled, miraculously compiled through. The specific reason many say is lib change con but actually I saw the first time is also con but still will error, so guess the problem is not there, specific where also need master to explain, the problem is solved, first record for later reference.
Eclipse compiled launcher source encountered a problem