Android Robotium和intellij idea核心库编译错误

Android Robotium和intellij idea核心库编译错误,android,intellij-idea,robotium,Android,Intellij Idea,Robotium,我正试图通过maven在intelli-j idea中为我的android项目添加Robotium测试。当我试图编译它时,虽然它只是给出了以下错误 Android Dex: [robotium] trouble processing "javax/xml/parsers/DocumentBuilder.class": Android Dex: [robotium] Ill-advised or mistaken usage of a core class (java.* or javax.*)

我正试图通过maven在intelli-j idea中为我的android项目添加Robotium测试。当我试图编译它时,虽然它只是给出了以下错误

Android Dex: [robotium] trouble processing "javax/xml/parsers/DocumentBuilder.class":
Android Dex: [robotium] Ill-advised or mistaken usage of a core class (java.* or javax.*)
Android Dex: [robotium] when not building a core library.
Android Dex: [robotium] This is often due to inadvertently including a core library file
Android Dex: [robotium] in your application's project, when using an IDE (such as
Android Dex: [robotium] Eclipse). If you are sure you're not intentionally defining a
Android Dex: [robotium] core class, then this is the most likely explanation of what's
Android Dex: [robotium] going on.
Android Dex: [robotium] However, you might actually be trying to define a class in a core
Android Dex: [robotium] namespace, the source of which you may have taken, for example,
Android Dex: [robotium] from a non-Android virtual machine project. This will most
Android Dex: [robotium] assuredly not work. At a minimum, it jeopardizes the
...
我试图解决这个问题

1) 通过maven将Robotium添加到空项目和示例Robotium应用程序。没有变化

2) 在“项目结构”下,我尝试改变Robotium库的范围。我可以用这种方式编译它,但最后却出现了NoClassDefFoundError错误。不是我想要的

3) 尝试使用以前版本的Robotium-无更改

4) 在谷歌搜索时,我发现:

Nov 14 01:32:50 <xastey> I asked this ealier but got sidetrack with other work so ....
 I'm getting "trouble processing "javax/xml/parsers/DocumentBuilder.class" " while
trying to compile my project.. anyone ran into this problem?
        ...

Nov 14 01:37:01 <xastey> nvm.. had to remove com.google.android:android dependency
现在,我的项目中自然已经包含了android平台。这可能是问题所在吗?android平台包含两次? 这似乎也表明了这一假设的支持

如果是这样,我该如何解决这个问题?似乎没有办法在IDE中编辑maven导入的JAR。我必须手动编辑pom文件吗?我只将IDE用于依赖项,因此除此之外,我几乎没有任何知识/经验


当然,也许我完全走错了方向。任何建议/意见都将不胜感激。

事实证明,maven包com.jayway.android.robotium:robotium solo:4.3是问题所在。里面有大约10个不同的罐子。这些额外的罐子似乎是问题所在。我不知道它们是干什么用的,因为事实证明它们是不必要的。当我只是手动在我的项目中只包含robotium-solo-4.3.jar时,robotium不会有任何问题。
android-4.0.1.2.jar