gpt4 book ai didi

java - Android/Gradle 构建失败 : Could not find dependency

转载 作者:行者123 更新时间:2023-12-02 03:47:15 25 4
gpt4 key购买 nike

我不知道该怎么办;我被困住了。我有以下依赖项,之前一切正常:

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'
}

然后,突然间,它开始说:

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

我不确定发生了什么变化或者是什么导致了这种情况的发生。

最佳答案

我遇到了同样的错误,然后我打开我的 android sdk 管理器并注意到一些更新正在等待。更新后一切都很好,我确实需要重新启动我的“mac”。

关于java - Android/Gradle 构建失败 : Could not find dependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36193522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com