Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android org.junit cant';在IntelliJ中解析_Android_Junit_Intellij Idea_Actionbarsherlock_Junit4 - Fatal编程技术网

Android org.junit cant';在IntelliJ中解析

Android org.junit cant';在IntelliJ中解析,android,junit,intellij-idea,actionbarsherlock,junit4,Android,Junit,Intellij Idea,Actionbarsherlock,Junit4,我想在IntelliJ中编译ActionBarSherlock作为我的项目的库模块,但是导入import static org.hamcrest.CoreMatchers.equalTo,导入静态org.junit.Assert.assertThat和导入org.junit.Test无法解析 有没有办法解决这个问题 编辑:当我在ActionBarSherlock中取消注释ManifestParsingTest.java并尝试编译我的项目时,我得到以下结果: Android Dex: [Money

我想在IntelliJ中编译ActionBarSherlock作为我的项目的库模块,但是导入
import static org.hamcrest.CoreMatchers.equalTo
导入静态org.junit.Assert.assertThat
导入org.junit.Test无法解析

有没有办法解决这个问题

编辑:当我在
ActionBarSherlock
中取消注释
ManifestParsingTest.java
并尝试编译我的项目时,我得到以下结果:

Android Dex: [MoneyTracker] UNEXPECTED TOP-LEVEL EXCEPTION:
[...]
Android Dex: [MoneyTracker] 1 error; aborting

解决了
test.com.actionbarsherlock.internal
被定义为
actionbarsherlock
模块中的源文件夹。

那么您到底做了什么?删除那个文件夹?我仍然很困惑…删除文件夹为我修复了它。