华域联盟 Andriod 解决Could not find com.android.tools.build:gradle:3.0.0

解决Could not find com.android.tools.build:gradle:3.0.0

android studio升级3.0,gradle升级4.1以后项目报错,如下

Could not resolve all files for configuration ‘:classpath'.
Could not find com.android.tools.build:gradle:3.0.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar
Required by:
project :* Try:
Run with –stacktrace option to get the stack trace. Run with –debug option to get more log output.

解决方法:在project的builde.gradle做如下操作分别加上google()

buildscript {

repositories {
    google()
    ....
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
    repositories {
        google()
        .....
    }
}

到此这篇关于解决Could not find com.android.tools.build:gradle:3.0.0的文章就介绍到这了,更多相关Could not find gradle:3.0.0内容请搜索华域联盟以前的文章或继续浏览下面的相关文章希望大家以后多多支持华域联盟!

本文由 华域联盟 原创撰写:华域联盟 » 解决Could not find com.android.tools.build:gradle:3.0.0

转载请保留出处和原文链接:https://www.cnhackhy.com/109592.htm

本文来自网络,不代表华域联盟立场,转载请注明出处。

作者: sterben

Android毕业设计记事本APP

详解Android壁纸服务的启动过程

发表回复

联系我们

联系我们

2551209778

在线咨询: QQ交谈

邮箱: [email protected]

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们

微信扫一扫关注我们