Android 앱에서 RecyclerView를 사용하고 싶습니다. 속성은 다음과 같습니다 이전 버전의 Android에서 RecyclerView 사용
minSdkVersion="14" (ICS)
compile sdk version="21" (L)
Target sdk version="14" (ICS)
나는 build.gradle 파일 종속성에서
compile 'com.android.support:appcompat-v7:21.0.3'
을 추가했다. 나는 XML에 RecyclerView을 추가 해요 때, 나는 오류 다음 납니다 :
The following classes could not be found:
- android.support.v7.widget.RecyclerView (Fix Build Path, Create Class)
XML 코드 :
<android.support.v7.widget.RecyclerView
android:id="@+id/my_recycler_view"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
내가 원하는 ICS 위의 모든 장치에서 실행할 수있는 응용 프로그램입니다. 이 문제를 해결할 때 도와주세요.
@ Jaguar 당신은'appcompat' v7 라이브러리를 추가했다. – steve
고마워. 이 후 libs에 jar 파일을 추가해야합니까? – Jaguar
@Jaguar no, 위에서 설명한 줄에서 jar 및 리소스를 가져옵니다. – steve