2016-03-24 10 views
0

Ich weiß nicht, was zu tun ist; Ich stecke fest. Ich habe folgende Abhängigkeiten und alles funktionierte gut vor:Android/Gradle Build fehlgeschlagen: Konnte keine Abhängigkeit finden

dependencies { 
     compile fileTree(dir: 'libs', include: ['*.jar']) 
     compile 'com.android.support:recyclerview-v7:22.2.0' 
     compile 'com.android.support:cardview-v7:22.2.0' 
     compile 'com.android.support:appcompat-v7:22.2.0' 
     compile 'com.android.support:support-v4:22.2.0' 
     compile 'com.android.support:design:22.2.0' 
     compile 'com.android.support:palette-v7:22.2.0' 
     compile 'com.google.android.gms:play-services-maps:8.4.0' 
     compile 'com.google.android.gms:play-services-analytics:8.4.0' 
     compile 'com.google.android.gms:play-services-appindexing:8.4.0' 
     compile 'com.google.android.gms:play-services-auth:8.4.0' 
     compile 'com.google.android.gms:play-services-location:8.4.0' 
     compile 'com.squareup.picasso:picasso:2.5.2' 
     compile 'ch.acra:acra:4.6.1' 
     compile 'com.astuetz:pagerslidingtabstrip:1.0.1' 
     compile 'com.wdullaer:materialdatetimepicker:2.0.2' 
     compile 'com.getbase:floatingactionbutton:1.10.1' 
     compile 'com.github.nirhart:parallaxscroll:1.0' 
     compile 'com.facebook.android:facebook-android-sdk:[4,5)' 
     compile 'com.parse.bolts:bolts-android:1.4.0' 
     compile 'com.parse:parse-android:1.13.0' 
    } 

Dann, plötzlich, es begann zu sagen:

Error:A problem occurred configuring project ':app'. 
> Could not resolve all dependencies for configuration ':app:_debugCompile'. 
    > Could not find com.android.support:cardview-v7:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified 
    > Could not find com.android.support:support-v4:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified 
     hamro-doctor-android:app:unspecified > com.android.support:recyclerview-v7:22.2.0 
     hamro-doctor-android:app:unspecified > com.android.support:appcompat-v7:22.2.0 
     hamro-doctor-android:app:unspecified > com.android.support:design:22.2.0 
     hamro-doctor-android:app:unspecified > com.android.support:palette-v7:22.2.0 
    > Could not find com.android.support:support-v4:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified > com.astuetz:pagerslidingtabstrip:1.0.1 
    > Could not find com.android.support:support-v4:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified > com.wdullaer:materialdatetimepicker:2.0.2 
    > Could not find com.android.support:support-v4:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified > com.facebook.android:facebook-android-sdk:4.10.1 
    > Could not find com.android.support:cardview-v7:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified > com.facebook.android:facebook-android-sdk:4.10.1 
    > Could not find com.android.support:support-v4:23.2.0. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     https://jcenter.bintray.com/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom 
     file:/home/yubraj/adt-bundle-linux-x86_64-20131030/sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar 
    Required by: 
     hamro-doctor-android:app:unspecified > com.google.android.gms:play-services-analytics:8.4.0 > com.google.android.gms:play-services-basement:8.4.0 

Ich bin nicht sicher, was sich verändert, oder was dies verursacht geschieht zu starten.

+0

Sie haben die Abhängigkeiten einbezogen, aber Gradle kann diese Abhängigkeiten nicht finden, um sie herunterzuladen. –

+1

Mögliches Duplikat http://Stackoverflow.com/q/29284236/18157 –

+1

Danke Jim Garrison, ich denke, dass Google Play-Dienste die v23.2.0 benötigt, aktualisierte ich mein SDK und es funktioniert jetzt. Danke Kumpel dafür. –

Antwort

2

Ich bekam den gleichen Fehler, ich öffnete dann meine Android SDK-Manager und bemerkte, dass einige Updates ausstehen. Alles gut jetzt nach Updates, ich musste meinen "Mac" neu starten.

+0

Ja richtig, ich merkte später, dass die Bibliotheken, die ich benutze, die neueste SDK verwenden, die ich nicht installiert hatte, so dass nach der Installation alles in Ordnung ging. –

Verwandte Themen