当我尝试添加对AndroidX Test JUnit 1.0.0-beta01:androidTestImplementation androidx.test.ext:junit:1.0.0-beta01的依赖时,Gradle Sync会失败,出现以下错误:
未能解决: org.junit:junit:4.12
手动添加org.junit依赖的所有操作也都没有帮助。
发布于 2018-10-12 00:59:57
上述问题已在1.0.0-beta02中解决。
'androidTestImplementation‘androidx.test.ext:junit:1.0.0-beta02’
发布于 2018-10-10 03:38:47
您可以手动排除'org.junit‘组。
androidTestImplementation("androidx.test.ext:junit:1.0.0-beta01") {
exclude group: "org.junit"
}https://stackoverflow.com/questions/52718968
复制相似问题