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 my pom.xml <dependency> <groupId>org.robolectric</groupId> <artifactId>robolectric</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> When building and deploying from console with mvn package android:deploy everything