Error:Could not find com.android.tools.build:gradle:3.0.0
16lz
2022-07-24
Error:Could not find com.android.tools.build:gradle:3.0.
Searched in the following locations:
file:/D:/android/androidstudio/gradle/m2repository/com/android/tools/build/gradle/3.0/gradle-3.0.pom
file:/D:/android/androidstudio/gradle/m2repository/com/android/tools/build/gradle/3.0/gradle-3.0.jar
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0/gradle-3.0.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0/gradle-3.0.jar
Required by:
:EasyPusher-Android-master:unspecified
百度上搜了一下 解决了。可惜不知道为什么
解决方法:在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() ..... }}
更多相关文章
- android EditText设置不可写
- Android(安卓)Activity的启动
- Android下Excel的操作
- APP开发实战94-Vector静态图的使用
- Android(安卓)开发中的倒计时
- 【Android】文件读写操作(含SDCard的读写)
- Gradle多渠道打包
- [APP] Android(安卓)开发笔记 006-使用短信验证SDK进行短信验证
- Android(安卓)5.x特性概览二