Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
来源:互联网 发布:如何退出淘宝客 编辑:程序博客网 时间:2024/04/29 06:15
升级到Android Sutido 3.0后,跑测之前的Model的main()方法方法时报错:
Error:Gradle: A problem occurred configuring root project 'MyApplication'.> 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 :
解决:
修改Project的build.gradle(注意:不是App的build.gradle),两处加上google()
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' }}allprojects { repositories { jcenter() google() }}task clean(type: Delete) { delete rootProject.buildDir}
阅读全文
0 0
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- Could not resolve all dependencies for configuration ':classpath'. Could not find com.android.t
- Could not resolve all files for configuration ':classpath'.
- Could not resolve all dependencies for configuration ':classpath'.
- Could not resolve all dependencies for configuration ':classpath'.
- Could not resolve all dependencies for configuration
- gradle错误“Could not resolve all dependencies for configuration”
- could not resolve all dependencies for configuration ' _debugcompile 错误
- Could not resolve all dependencies for configuration ':XXX:_debugCompile'
- 【已解决】could not resolve all dependencies for configuration ':claapath'
- AS - Could not resolve all dependencies for configuration ':app:_debugAndroidTestApkCopy'
- Could not resolve all dependencies for configuration ':app:_debugApk'
- Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
- Could not resolve all dependencies for configuration ':app:_googleplayDebugApkCopy'.
- Could not resolve all dependencies for configuration ':app:retrolambdaConfi
- 解决ionic编译android支持问题> Could not resolve all dependencies for configuration ':_debugCompile'. > Co
- android studio中出现gradle编译失败: Could not resolve all dependencies for configuration ':app:_debugApkCop
- Could not resolve com.android.tools.build:gradle:0.5.+
- SQL plus客户端连接远程Oracle服务器
- [Leetcode] 449. Serialize and Deserialize BST 解题报告
- iOS捕获异常,常用的异常处理方法
- k8s集群搭建过程中master init遇到的两个小错误
- 《串口驱动回眸:andriod虚拟机与串口调试精灵通讯》
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- 【python网络爬虫 二】IndentationError: unexpected indent
- 让springboot打包后使用java -jar就可运行
- mybatis介绍
- Android N 通话界面_CallButtonFragment
- mongoDB的语句
- Python之68个内置函数详解【翻译自python3.6官方文档】
- jdbc 连接数据库出现 密码错误的问题(java.sql.SQLException: Access denied for user 'root'@'localhost' (using passwo)
- 软件开发 关键在喜欢和适合 论程序员码农的前景 8年大咖干货杂谈