我已经尝试了几个小时来编译一个简单的机器人电气测试类。所有红色的项都找不到,因此抛出编译错误。

dependencies {
// Robolectric
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.apache.maven:maven-ant-tasks:2.1.3' // fixes linux/mac
testCompile 'org.robolectric:robolectric:3.0'
}发布于 2016-04-07 08:48:22
问题是我安装了一个被弃用的插件: android-studio-unit-test-plugin。
https://stackoverflow.com/questions/36460970
复制相似问题