我一直用Eclipse编程Android,并决定开始迁移到Android Studio。
在我的项目中,我添加了一些库......
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
/* For Google Play Services */
//Firebase
compile 'com.android.support:appcompat-v7:23.+'
compile 'com.android.support:design:23.+'
compile 'com.android.support:support-v4:23.+'
compile 'com.android.support:cardview-v7:23.+'
compile 'com.google.android.gms:play-services-safetynet:8.3.0'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile 'com.firebase:firebase-client-android:2.3.0'
compile 'com.firebaseui:firebase-ui:0.2.2'
}
我在构建gradle中遇到错误。 错误:配置项目':app'时出现问题。
> Could not download firebase-client-jvm.jar (com.firebase:firebase-client-jvm:2.3.0)
> Could not get resource 'https://jcenter.bintray.com/com/firebase/firebase-client-jvm/2.3.0/firebase-client-jvm-2.3.0.jar'.
> Could not GET 'https://jcenter.bintray.com/com/firebase/firebase-client-jvm/2.3.0/firebase-client-jvm-2.3.0.jar'.
> peer not authenticated
我发布了:我没有添加 firebase-client-jvm-2.3.0 库来编译。但我得到了这个错误。
我尝试了this,但问题仍无法解决。
你能解释一下并帮我解决吗?
答案 0 :(得分:1)
Gradle Could not HEAD https://..pom > peer not authenticated可能重复 - 您应该在repo URL中使用HTTP而不是HTTPS:
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}