其他分享
首页 > 其他分享> > Android Studio 3.0.1无法解决依赖项错误

Android Studio 3.0.1无法解决依赖项错误

作者:互联网

您好,我是Android Studio的新手.

刚在Windows 7上安装了最新的3.0.1.

我收到gradle依赖项错误,甚至无法启动我的第一个基本项目.

我已经尝试过在该网站或互联网上的任何位置找到的每一种方法,但是没有任何效果.

请帮助我,错误是.

Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve junit:junit:4.12.
Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.squareup:javawriter:2.1.1.
Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve javax.inject:javax.inject:1.
Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-library:1.3.
Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-integration:1.3.
Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.code.findbugs:jsr305:2.0.1.
Error:Error:Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
Error:Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve junit:junit:4.12.

enter image description here

enter image description here

谢谢.

解决方法:

我遇到了同样的问题,只是在重新启动重建过程之前禁用了防病毒软件(avast).

标签:android-gradle,android
来源: https://codeday.me/bug/20191110/2014743.html