Android开发:Error:(3, 17) 错误: 程序包org.junit不存在

编译项目的时候某个module突然出现了错误:

    Error:(3, 17) 错误: 程序包org.junit不存在

后来对比发现时误删除了build.gradle的

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.nineoldandroids:library:2.4.0'
    testCompile 'junit:junit:4.12'//被误删除了。。。不知道啥时候删的...
}

找到正常的module,把这个复制过来加上就好了。。。
————————2017年3月12日02:27:33———————————-
另外CSDN左侧有广告挡住内容了,按F5刷新一遍就不显示广告了

猜你喜欢

转载自blog.csdn.net/pkandroid/article/details/61535978
今日推荐