android studio 3.6.1导入项目报错

    • 报错:
    • 原因:
    • 解决方法:

报错:

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换成你本地的。

更多相关文章

  1. Android 百度地图笔记
  2. Android百度AI开放平台使用探索详解
  3. android 模仿百度地图自定义对话框
  4. android 基于百度地图api获取经纬度
  5. android 4.3之前的版本 播放hls获取不到总时长的原因
  6. Android——百度APIstore+Json——获取新闻频道+新闻数据

随机推荐

  1. Android HTTP
  2. Java代码设置Android全屏
  3. Could not find SDK_Root\tools\adb.ex
  4. android上实现蓝牙透传时遇到点问题
  5. android:layout_weight 属性对于组件长度
  6. Android获取当前网络状态
  7. Android清单文件属性大全
  8. Android:控件AutoCompleteTextView 自动提
  9. android webview web里面的数据透传到jav
  10. android 读取SQLite android could not o