android studio 3.6.1导入项目报错提示无法下载classpath里的内容
作者:xiaobailin_q 时间:2021-09-28 11:02:57
报错:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath'.
原因:
百度说是无法下载classpath里的内容,具体不是很清楚
解决方法:
百度到了很多方法,单个尝试都解决不了,然后把解决方法结合
在build.gradle里
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
}
}
allprojects {
repositories {
google()
maven { url 'https://maven.google.com' }
jcenter()
}
}
然后要到gradle\wrapper\gradle-wrapper.properties里把distributionUrl换成你本地的。
总结
到此这篇关于android studio 3.6.1导入项目报错提示无法下载classpath里的内容的文章就介绍到这了,更多相关android studio 3.6.1导入项目报错内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
来源:https://blog.csdn.net/xiaobailin_q/article/details/105965178
标签:android,studio,3.6,导入项目
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
c#生成站点地图(SiteMapPath)文件示例程序
2022-08-03 02:26:55
SpringBoot整合BCrypt实现密码加密
2021-12-09 20:01:08
![](https://img.aspxhome.com/file/2023/7/66067_0s.jpg)
java开发就业信息管理系统
2022-06-19 02:09:30
![](https://img.aspxhome.com/file/2023/5/84195_0s.jpg)
Spring Boot中@ConditionalOnProperty的使用方法
2021-11-27 09:07:33
详解IDEA多module项目maven依赖的一些说明
2023-07-21 06:09:05
![](https://img.aspxhome.com/file/2023/4/67974_0s.png)
IDEA配置maven环境的详细教程(Unable to import maven project报错问题的解决)
2022-04-09 13:53:40
![](https://img.aspxhome.com/file/2023/0/71000_0s.jpg)
一文了解Java读写锁ReentrantReadWriteLock的使用
2023-10-12 19:28:21
![](https://img.aspxhome.com/file/2023/7/63067_0s.jpg)
基于WPF实现简单的文件夹比较工具
2023-11-15 16:08:34
![](https://img.aspxhome.com/file/2023/6/74836_0s.png)
Java图论进阶之最小生成树算法详解
2022-05-28 12:17:54
![](https://img.aspxhome.com/file/2023/4/60464_0s.jpg)
Java Structs框架原理案例详解
2023-12-11 16:46:22
![](https://img.aspxhome.com/file/2023/4/81224_0s.jpg)
Go Java算法之找不同示例详解
2021-10-29 19:37:08
Java中为什么start方法不能重复调用而run方法可以?
2023-11-15 03:04:02
![](https://img.aspxhome.com/file/2023/8/59598_0s.webp)
Java中闭包简单代码示例
2023-11-08 23:09:48
Spring的初始化和XML解析的实现
2022-12-13 15:50:51
详解Java中的日期类
2022-08-27 17:14:03
Java生产1-100的随机数简单实例(分享)
2021-08-15 02:52:28
基于java集合中的一些易混淆的知识点(详解)
2023-08-29 03:06:26
SpringMVC用JsonSerialize日期转换方法
2021-12-06 10:59:59
![](https://img.aspxhome.com/file/2023/2/70332_0s.jpg)
Activiti流程图查看实例
2022-09-10 17:51:44
c# socket编程udp客户端实现代码分享
2023-06-16 05:03:31