在android studio3.0.1中新建项目出现以下错误,怎么办啊?

在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,就好了。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2018-08-12

你拍的是啥,看不清,估计是依赖出问题了,你试下这个

本回答被网友采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网