Skip to content Skip to sidebar Skip to footer

Unable To Execute Dex: Multiple Dex Files Define Lorg/apache/maven/artifact/artifact

I have an Android project with Robolectric. My application related classes are placed in src/main/java and test related classes in src/test/java. I have these test dependencies in

Solution 1:

in the folder bin/dexedlibs you have a duplicate jar

  1. remove it
  2. make a clean of preject
  3. retry

Solution 2:

After some investigation it appears to be a m2e-android related issue

Solution 3:

I once encountered same error. At the end, I found it is caused by including MoPubView's jar twice:

-On the one hand, I imported the MoPubView project via Eclipse Menu function "File | Import";  

 ->thenright click my project, select "Properties"; 
 ->In the left bar, select "android";
 ->In the "Library" section at the right, press [Add] button...  

-On the other hand, I copied the mopub-sdk.jar to the /libs folder of my project. 

I deleted the latter. It is solved.

Post a Comment for "Unable To Execute Dex: Multiple Dex Files Define Lorg/apache/maven/artifact/artifact"