Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to execute dex & Conversion to Dalvik format failed

I've seen this question being asked and answered a few times but it didn't work for me. Eclipse is throwing:

[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's a build path issue caused by having bin folder included in your build path. Others say to increase the memory allocated in eclipse.ini to -Xms128m -Xmx512m or something higher, but this didn't do it for me either.

This is the only project throwing this error and it only happens with my Win 7 Pro at home. At work I've Mac OSX Mountain Lion and works fine.

AndroidJava Build Path SourceJava Build Path LibsJava Build Path Source Order and Export

What could it be? Thanks for your time.

like image 654
GuilhE Avatar asked Nov 27 '22 21:11

GuilhE


1 Answers

While I was editing my screen shots I've found what could be causing this problem.

Problem

As you can seen I had two android-support-v4.jar. I've removed android-support-v4.jar, clean FacebookSDK project and my my-app-phone project launched 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 it helps!
Take care ;)

like image 200
GuilhE Avatar answered Dec 09 '22 18:12

GuilhE