Amit Desale
Amit Desale

Reputation: 1291

failed to find: com.android.support:appcompat-v7:22.2.0

I'm using Android Studio. I use floating action button so when i use it gives me error and tell me to update android support library v7 to 22.2.0 version. so when i update v7 support library to 22.2.0 version and make synchronization then it gives me error failed to find: com.android.support:appcompat-v7:22.2.0 version. How to resolved this error?

Upvotes: 5

Views: 8485

Answers (3)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75788

Just update your support library and support repository & your SDK Manager , Then

compile 'com.android.support:appcompat-v7:22.2.0'

Please check this SO Answer

Upvotes: 8

fab
fab

Reputation: 790

Update your gradle file with this section:

dependencies {
    ...
    compile 'com.android.support:design:22.2.1'
    compile 'com.android.support:recyclerview-v7:22.2.1'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:cardview-v7:22.2.1'
}

Upvotes: 0

Mathieu de Brito
Mathieu de Brito

Reputation: 2696

If you are using Android Studio, make sure you downloaded the support repository using SDK Manager

Upvotes: 2

Related Questions