问题描述
我有一个Robolectric Android项目。
I have an Android project with Robolectric.
我的应用程序相关的类都放在的src / main / JAVA
和测试相关的类在的src / test / java下
。
My application related classes are placed in src/main/java
and test related classes in src/test/java
.
我在这些测试依赖我的的pom.xml
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>
在构建与 MVN包装机器人从控制台部署:部署
一切正常。
从启动的Eclipse(朱诺)项目时会出现问题。
When building and deploying from console with mvn package android:deploy
everything is ok.Problem occurs when launching project from Eclipse (Juno).
[2013-03-24 12:27:26 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/maven/artifact/Artifact;
[2013-03-24 12:27:26 - my-app] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/maven/artifact/Artifact;
似乎所需要的Robolectric依赖性仅包括在内。我在做什么错了?
It appears that dependencies that are required for Robolectric only are included. What am I doing wrong?
推荐答案
经过一番调查这似乎是一个M2E-的Android相关的
After some investigation it appears to be a m2e-android related issue
这篇关于无法执行DEX:多DEX文件定义Lorg /阿帕奇/行家/神器/神器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!