您的位置:首页 > 移动开发

Failed to resolve: com.android.support:appcompat-v7:27.0.1问题解决

2018-03-04 10:22 726 查看
今天,在毫无征兆的情况下AndroidStudio又抽风了,搞了大半天,试了网上众多方案,终于解决了这个问题。咱们一步一步来

第一步:这是最开始的bug
Error:Failed to resolve: com.android.support:support-annotations:27.0.1
Install Repository and sync project
Open File
Show in Project Structure dialog
Error:Failed to resolve: com.android.support:appcompat-v7:27.0.1
Install Repository and sync project
Open File
Show in Project Structure dialog

这个问题可以通过修改project的gradle,添加maven { url “https://maven.google.com” }即可,如图



同时,打开SDK Manager



检查repository是否已经下载,并安装
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: