当前位置: 移动技术网 > IT编程>移动开发>Android > android studio 3.6.1导入项目报错提示无法下载classpath里的内容

android studio 3.6.1导入项目报错提示无法下载classpath里的内容

2020年05月14日  | 移动技术网IT编程  | 我要评论

iou,人人都爱本道长,ca1306航班

报错:

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导入项目报错内容请搜索移动技术网以前的文章或继续浏览下面的相关文章希望大家以后多多支持移动技术网!

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网