在android studio3.0.1中新建项目出现以下错误,怎么办啊?[图片]Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.0.0-beta1.
<a href="openFile:E:/androidStudioWork/F1/app^ild.gradle">Open File</a><br><a href="Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.0.0-beta1.">Show Details</a>
Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test.espresso:espresso-core:3.0.2.
<a href="openFile:E:/androidStudioWork/F1/app^ild.gradle">Open File</a><br><a href="Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test.espresso:espresso-core:3.0.2.">Show Details</a>
还有图片上差不多同样的错误。怎么办啊?
点击androidStudio右上角 File -> settings -> 输入框中输入 Gradle, Offline work选项前面的√去掉,一定要去掉。因为不去掉是不会更新架包库的。去掉之后,重新Build,就好了。
你拍的是啥,看不清,估计是依赖出问题了,你试下这个
本回答被网友采纳