这篇文章主要介绍了在Android Studio升级时碰到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


基础教程推荐
- IOS 播放系统提示音使用总结(AudioToolbox) 2023-03-01
- iOS开发教程之XLForm的基本使用方法 2023-05-01
- IOS应用内跳转系统设置相关界面的方法 2022-11-20
- Flutter手势密码的实现示例(附demo) 2023-04-11
- android studio按钮监听的5种方法实例详解 2023-01-12
- Flutter绘图组件之CustomPaint使用详解 2023-05-12
- Android中的webview监听每次URL变化实例 2023-01-23
- Android开发使用RecyclerView添加点击事件实例详解 2023-06-15
- Android多返回栈技术 2023-04-15
- 解决Android Studio突然不显示logcat日志的问题 2023-02-04