問題描述
一切正常,直到今天我開始收到一條錯誤消息,我什至無法從 Android Studio 中同步項目與 Gradle 文件".我唯一改變的是......辦公室:D
Everything has been working, only today i started to get an error message, and i can't even "Sync Project with Gradle files" from Android Studio. The only thing i have changed was ... the office :D
錯誤:配置項目 ':app' 時出現(xiàn)問題.無法下載 library.jar (com.mcxiaoke.volley:library:1.0.16)無法獲取'https://jcenter.bintray.com/com/mcxiaoke/volley/library/1.0.16/library-1.0.16.jar'.對等體未通過身份驗證
Error:A problem occurred configuring project ':app'. Could not download library.jar (com.mcxiaoke.volley:library:1.0.16) Could not GET 'https://jcenter.bintray.com/com/mcxiaoke/volley/library/1.0.16/library-1.0.16.jar'. peer not authenticated
還有我的 build.grade
And my build.grade
buildscript {
repositories {
jcenter()
maven { url 'http://download.crashlytics.com/maven'}
maven { url 'http://dl.bintray.com/amulyakhare/maven'}
}
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
....
gradle-wrapper.properties:
gradle-wrapper.properties:
distributionUrl=https://services.gradle.org/distributions/gradle-2.3-all.zip
我也嘗試使用 http 而不是 https,但仍然是同樣的問題.
I also tried with http instead of https, but still the same problem.
有人有類似的問題嗎?
推薦答案
臨時解決方案
將此添加到 build.gradle
Add this to build.gradle
repositories {
mavenLocal()
maven {
name "jcenter"
url "http://jcenter.bintray.com/"
}
}
這篇關(guān)于Android 對等體未通過身份驗證的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!