Android Studio 出现的Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:27.+ 报错解决方案

在使用过程中,弹出如下的错误提示,经过搜索资料以及实践,我把自己的实践过程整理一下分享出来。

Android Studio 出现的Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:27.+ 报错解决方案

解决方案:

第一步:打开build.gradle。

第二步:将原有的release方法注释起来,替换成

repositories { 

         maven {

                        url "https://maven.google.com"   

         }

} "

如下图:

Android Studio 出现的Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:27.+ 报错解决方案

第三步:再进行一次clean project【在Build中】就大功告成啦!