Hilary Mwape
Hilary Mwape

Reputation: 445

Which recyclerview version do i use for Support repository 25

I am a an android studio beginner,i have been following a tutorial on using the recyclerview,I saw the tutorial succesfully use 'com.android.support.recyclerview-v7:23.0.+'

but when i tried to use it i got the error

Error:Failed to resolve: com.android.support.recyclerview-v7:23.0.+:

i have android studio 1.4 and my Android Support Repository is 25 and is upto date. should i be using a different recyclerview version in dependencies?

Upvotes: 0

Views: 1725

Answers (1)

yennsarah
yennsarah

Reputation: 5517

Always try to avoid the + when importing libraries. This can lead to errors, because the library gets new updates automatically. Check if you have the updated Android Support Library(23.1.1) in your SDK Manager.

The latest version and correct import is:

compile 'com.android.support:recyclerview-v7:23.1.1'

Upvotes: 1

Related Questions