编译报错:Failed to resolve com.android.support

Posted zhaoqingyue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译报错:Failed to resolve com.android.support相关的知识,希望对你有一定的参考价值。

解决方法:

打开build.gradle 添加下面标红的代码

allprojects {
    repositories {
        jcenter()
        
        // 标红的代码
        maven {
            url "https://maven.google.com"
        }
    }
}












以上是关于编译报错:Failed to resolve com.android.support的主要内容,如果未能解决你的问题,请参考以下文章

Vue.js报错Failed to resolve filter问题原因

Failed to resolve filter报错原因

依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****

vue启动项目的报错:Failed to resolve loader: less-loader You may need to install it.

问题解决-Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7

使用SearchView报错java.lang.UnsupportedOperationException: Failed to resolve ...