Installing Repository For Com.android.support.recyclerview-v7 For Android Studio Error
I'm a beginner in android studio and I try to use a recyclerView. When I try to add compile 'com.android.support.recyclerview-v7:21.0.+' to my gradle file, I get the error: failed
Solution 1:
First of all, run the SDK Manager and check if your support libraries repository is updated.
Then open your build.gradle
(not the top level file) and add:
dependencies{
//....
compile 'com.android.support:recyclerview-v7:23.0.0'
}
Pay attention. You report in your question a typo in your library (compile 'com.android.support.recyclerview-v7:21.0.+')
Using the v23 you have to compile with API23.
Of course you can use a "old" version using:
compile'com.android.support:recyclerview-v7:22.2.1'compile'com.android.support:recyclerview-v7:21.1.3'
Post a Comment for "Installing Repository For Com.android.support.recyclerview-v7 For Android Studio Error"