无法解决依赖关系

时间:2018-04-16 10:15:43

标签: android-studio

构建时,显示此错误:

  

无法解析':app @ debug / compileClasspath'的依赖关系:可以   不解析com.android.support:appcompat-v7:27.1.1。

enter image description here

1 个答案:

答案 0 :(得分:0)

只需在附加图片中突出显示的存储库下添加google()到您的项目gradle,因为谷歌已将其存储库移动到maven,您必须添加此方式,希望这可以帮助您!!!或阅读此官方文件Support Library Setup enter image description here

Gabriele Mariotti的另一个不错的回答Using google() as a repository doesn't work