获取错误:
Gradleconnectioncheck:app:unspecified无法解析 com.github.pstovk:MaterialDesignLibrary:1.3
无法获得“https://jcenter.bintray.com/com/github/pstovk/MaterialDesignLibrary/1.3/MaterialDesignLibrary-1.3.pom”。 jcenter.bintray.com
设置:
systemProp.https.proxyHost=http-proxy.nwie.net
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=http-proxy.nwie.net/%USERNAME%
systemProp.https.proxyPassword=%PASSWORD%`
jcenter()
,已在Link 代码:
repositories {
jcenter()
}
答案 0 :(得分:2)
我通过添加代码解决了这个问题:
allprojects {
repositories {
jcenter()
}
}
答案 1 :(得分:1)
确保包含proxyHost,proxyUser和proxyPassword的http和https设置。
如果这不起作用,请参阅此类似问题:https://github.com/navasmdc/MaterialDesignLibrary/issues/288
尝试gradle sync和/或清理并再次构建:
Tools -> Android -> Sync Project with Gradle Files
如果失败,请尝试运行'重建项目':
Build -> Rebuild Project
还可以尝试切换到navasmdc的Material Design回购: https://github.com/navasmdc/MaterialDesignLibrary
答案 2 :(得分:0)
我尝试使用systemProp.proxySet = true和http& https both和It的工作!
systemProp.proxySet=true
systemProp.http.proxyHost=http-proxy.nwie.net
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=http-proxy.nwie.net/%USERNAME%
systemProp.http.proxyPassword=%PASSWORD%`
systemProp.https.proxyHost=http-proxy.nwie.net
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=http-proxy.nwie.net/%USERNAME%
systemProp.https.proxyPassword=%PASSWORD%`