Unable to resolve dependency for ':[email protected]

时间:2022-06-15 18:04:16

使用AndroidStudio3.2报这个错

Unable to resolve dependency for ':[email protected]

 

配置

Unable to resolve dependency for ':[email protected]

 

 解决方法

1)去掉代理

Unable to resolve dependency for ':[email protected]

gradle目录的下代理属性也 注销掉。
Unable to resolve dependency for ':[email protected]

Unable to resolve dependency for ':[email protected]

 

2)项目的gradle设定

Unable to resolve dependency for ':[email protected]

Unable to resolve dependency for ':[email protected]

 

3)设定项目的gradle-wrapper.properties的distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip,如果项目更新不下来gradle-4.6-all.zip,就去掉http后面的“S”

Unable to resolve dependency for ':[email protected]

 

4)设置项目build.gradle的为

classpath ‘com.android.tools.build:gradle:3.2.0‘

maven {
url "https://maven.google.com"
}
 

Unable to resolve dependency for ':[email protected]

 

5)同步一下

Unable to resolve dependency for ':[email protected]

 

 6)最后运行结果
Unable to resolve dependency for ':[email protected]