Rocky Zhang
Rocky Zhang

Reputation: 1320

When I update my Android Support Library to 23.0.1, there is a error that miss library of 22.1.1

Could not resolve all dependencies for configuration ':MaterialLibs:_debugCompile'. Could not find com.android.support:appcompat-v7:22.1.1.

 Searched in the following locations:
     https://jcenter.bintray.com/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.pom
     https://jcenter.bintray.com/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.jar
     file:/B:/Android/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.pom
     file:/B:/Android/android-sdk-windows/extras/android/m2repository/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.jar
     file:/B:/Android/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.pom
     file:/B:/Android/android-sdk-windows/extras/google/m2repository/com/android/support/appcompat-v7/22.1.1/appcompat-v7-22.1.1.jar

 Required by:
     FamilyHealthTracker:MaterialLibs:unspecified

Could not find com.android.support:cardview-v7:22.1.1.

 Searched in the following locations:
     https://jcenter.bintray.com/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.pom
     https://jcenter.bintray.com/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.jar
     file:/B:/Android/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.pom
     file:/B:/Android/android-sdk-windows/extras/android/m2repository/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.jar
     file:/B:/Android/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.pom
     file:/B:/Android/android-sdk-windows/extras/google/m2repository/com/android/support/cardview-v7/22.1.1/cardview-v7-22.1.1.jar
 Required by:
     FamilyHealthTracker:MaterialLibs:unspecified

Upvotes: 1

Views: 4231

Answers (2)

Ahmed Elgamal
Ahmed Elgamal

Reputation: 11

Thanks it's working

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com."
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 3
        versionName "1.2"
        multiDexEnabled true
    }

Upvotes: 1

AndiGeeky
AndiGeeky

Reputation: 11474

Please download 'cardview-v7-22.1.1.jar' by SDK Manager:

  1. Download library from this dropbox link

  2. Copy and paste this folder to

    your sdk path\extras\android\m2repository\com\android\support

  3. Restart Android Studio and build project.

Upvotes: 2

Related Questions