androidintellij-ideadx

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...


Solution

  • 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.