Programing

RecyclerView가 없습니다.

lottogame 2020. 12. 29. 06:38
반응형

RecyclerView가 없습니다.


방금 새로운 SDK 도구 (Android L 개발자 미리보기)를 설치했는데 사용하려고하는데 RecyclerView누락 된 것 같습니다.

내 이해에서 v7지원 라이브러리를 포함해야 하지만 그렇게 할 수없는 것 같습니다 ...

SDK 폴더에서 v7 라이브러리를 찾을 수없는 것 같습니다 (SDK 관리자에서 Android 지원 라이브러리를 설치했습니다).


Android 저장소, 지원 라이브러리를 업데이트해야하며이 종속성을 사용해야합니다.

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

2017 년 10 월 30 일 업데이트 :

를 사용하는 +것은 나중에 빌드를 복제 할 수 없기 때문에 좋은 옵션이 아닙니다.

이러한 버전 중 하나를 사용할 수 있습니다. SDK에서 업데이트 된 버전을 확인하십시오.

  //it requires compileSdkVersion 27
  implementation 'com.android.support:recyclerview-v7:27.1.0'
  implementation 'com.android.support:recyclerview-v7:27.0.2'
  implementation 'com.android.support:recyclerview-v7:27.0.1'
  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'

The only way I found to use that library is by copying The .aar file that you can find in /extras/android/m2repository/com/android/support/recyclerview-v7/21.0.0-rc/ Than rename it in .zip and uncompress-it. Than copy the class.jar file in you project library (maybe rename it in something more like recyclerview-v7.jar).

Please remember to upgrade The jar when new versions will be rolled out


you have to give the full path in gradle build dependency

like

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

as it will give error due to looking in a directory named 23.0 so provide full path


Steps to achieve:

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

2.After updating Android Support Repository from 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 unzipping recyclerview-v7-21.0.0-rc1.aar you will get classes.jar

5.rename classes.jar to recyclerView.jar for feature reference and add to your Android app under /lib folder


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'

For me, I was able to fix it by updating to the most recent version of android studio (3.3). I ran into some issues after updating which I resolved by using the "Import Project option" instead of just re-opening the project.

ReferenceURL : https://stackoverflow.com/questions/24441107/recyclerview-is-missing

반응형