Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Dex: Unable to execute DX (IntelliJ)

I follow the steps from https://stackoverflow.com/a/5271194/1973953 this link.

But when i run an application i am getting these errors

enter image description here

i have only one line in my project.properties file "target=android-11"

And this is my AndroidManifest.xml

enter image description here

So my question is why i am getting these errors and how to solve them...

like image 930
Tanmay Majumder Avatar asked Feb 12 '14 13:02

Tanmay Majumder


1 Answers

When I had this problem it was because the ActionBarSherlock library I added to my project defined the android-support-v4.jar as a compile dependency and this jar was already included in my project so there were multiple copies/version of DEX at compile time.

The solution was to change the ActionBarSherlock module dependency for this jar to be Runtime instead of compile, as my project was already providing it.

like image 157
TimT Avatar answered Oct 30 '22 03:10

TimT