Failed to convert dex & Conversion to Dalvik format

I saw how this question was asked and answered several times, but it did not work for me. Eclipse throws:

[2013-03-16 17:45:34 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; [2013-03-16 17:45:34 - my-app-phone] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; 

Some say that the build path problem is caused by the presence of the bin folder included in your build path. Others say increasing the memory allocated in eclipse.ini to -Xms128m -Xmx512m or something higher, but that is not for me either.

This is the only project that throws this error, and it only happens with my Win 7 Pro at home. At work, I have Mac OSX Mountain Lion and it works great.

AndroidJava build path sourceJava Build Path LibsJava Build Path Source Order and Export

What could it be? Thank you for your time.

+4
source share
5 answers

While I was editing the screenshots, I discovered what might cause this problem.

Problemm

As you can see, I had two android-support-v4.jar . I uninstalled android-support-v4.jar, cleared the FacebookSDK project and the my-app-phone project started correctly.

 [2013-03-16 18:37:23 - my-app-phone] ------------------------------ [2013-03-16 18:37:23 - my-app-phone] Android Launch! [2013-03-16 18:37:23 - my-app-phone] adb is running normally. 




ps:

enter image description hereenter image description hereenter image description here

Hope this helps!
Be careful;)

+20
source

just remove android-support-v4.jar from the libs folder it solves

+6
source

I had an old version of Admob (which goes in a different file name: "GoogleAdMobAdsSdk-6.0.1.jar" I deleted it and it solved the problem.

0
source

I have the same problem. In the case of me, I first create a project that supports android4.xx, but then I have to support Android5.0.1. The problem is that the project has android-support-v4.jar and Android5.0.1 / android.jar. Therefore, when I remove android-support-v4.jar, the problem is resolved. Now I can test the project on my device.

0
source

In my case, I had to remove the private Android libraries, see pic:

enter image description here

0
source

All Articles