RecyclerView is missing

I just installed the new SDK tools (Android L Developer Preview) and I am trying to use RecyclerView , but it seems to be missing.

In my opinion, I should include the v7 support library, but I cannot do this ...

I can not find the v7 library in the SDK folder (I installed the Android support library from the SDK manager).

Thanks in advance.

+52
android eclipse android-studio adt android-recyclerview
Jun 26 '14 at 22:14
source share
5 answers

You need to update the Android repository, support library, and you should use this dependency:

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

UPDATED 10/30/2017:

Using + not a good option, because you cannot replicate the assembly in the future.

You can use one of these versions. Check your sdk for the updated version:

  //it requires compileSdkVersion 27 compile 'com.android.support:recyclerview-v7:27.0.0' //it requires compileSdkVersion 26 //it requires to add the google maven repo // maven { // url "https://maven.google.com" // } compile 'com.android.support:recyclerview-v7:26.1.0' compile 'com.android.support:recyclerview-v7:26.0.2' compile 'com.android.support:recyclerview-v7:26.0.1' compile 'com.android.support:recyclerview-v7:26.0.0' //it requires compileSdkVersion 25 compile 'com.android.support:recyclerview-v7:25.4.0' compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.0' compile 'com.android.support:recyclerview-v7:25.2.0' compile 'com.android.support:recyclerview-v7:25.1.1' compile 'com.android.support:recyclerview-v7:25.1.0' compile 'com.android.support:recyclerview-v7:25.0.0' //it requires compileSdkVersion 24 compile 'com.android.support:recyclerview-v7:24.1.1' compile 'com.android.support:recyclerview-v7:24.1.0' //it requires compileSdkVersion 23 compile 'com.android.support:recyclerview-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.3.0' compile 'com.android.support:recyclerview-v7:23.2.1' compile 'com.android.support:recyclerview-v7:23.2.0' compile 'com.android.support:recyclerview-v7:23.1.1' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.0.1' compile 'com.android.support:recyclerview-v7:23.0.0' //it requires compileSdkVersion 22 compile 'com.android.support:recyclerview-v7:22.2.1' compile 'com.android.support:recyclerview-v7:22.2.0' compile 'com.android.support:recyclerview-v7:22.1.1' compile 'com.android.support:recyclerview-v7:22.1.0' compile 'com.android.support:recyclerview-v7:22.0.0' //it requires compileSdkVersion 21 compile 'com.android.support:recyclerview-v7:21.0.3' compile 'com.android.support:recyclerview-v7:21.0.2' compile 'com.android.support:recyclerview-v7:21.0.0' 
+101
Jun 26 '14 at 23:59
source share

The only way I found this library is to copy the .aar file that you can find in / extras / android / m 2repository / com / android / support / recyclerview-v7 / 21.0.0-rc / Then rename it to .zip and uncompress-it. Then copy the class.jar file to the project library (maybe rename it to something like recyclerview-v7.jar).

Do not forget to update the bank when new versions are released.

+21
Jun 26 '14 at 23:12
source share

you need to specify the full path in the gradle build dependency

as

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

since it will give an error due to a search in a directory with the name 23.0 so specify the full path

+3
Aug 23 '15 at 16:49
source share

Steps to achieve:

1.Select the latest Android SDK Tools, Platform-tools and Build-tools. Select the latest version of Android Support Library and Android Support Repository.

2.After updating the Android support repository from the SDK manager, go to. \ sdk \ extras \ android \ m2repository \ com \ android \ support \ recyclerview-v7 \ 21.0.0-rc1

3.Unzip recyclerview-v7-21.0.0-rc1.aar

4. After unpacking recyclerview-v7-21.0.0-rc1.aar you will get class.jar

5.ename classes.jar to recyclerView.jar to link to objects and add to your android application in the / lib folder

+2
Sep 05 '15 at 3:02
source share

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

 compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:design:25.3.1' 
0
Jul 18 '17 at 5:00
source share



All Articles