저는 Android 및 Android Studio에 초보자입니다. 다음을 수행했습니다 :android studio에서 앱을 실행하는 동안 리소스 식별자를 찾을 수 없습니다.
루트 프로젝트에 libs
폴더를 만들었습니다. 내 libs
폴더에 cardslibrary
이 있습니다. 내 응용 프로그램에서이 라이브러리를 사용하고 있습니다. 다음과 같이 내 xml 파일은 다음과 같습니다
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:card="http://schemas.android.com/apk/res-auto" >
<it.gmariotti.cardslib.library.view.CardView
android:id="@+id/carddemo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card:card_layout_resourceID="@layout/card_thumbnail_layout" />
나는 다음과 같은 오류가 점점 오전 응용 프로그램을 실행하려고 :
Error:(9) No resource identifier found for attribute 'card_layout_resourceID' in package 'com.example.root.card_demo'
Error:(13, 38) No resource found that matches the given name (at 'card_layout_resourceID' with value '@layout/card_thumbnail_layout').
내가 네임 스페이스를 사용하고있는 방법은 잘못된 생각 . 그러나 특정 게시물을 살펴본 후에도 무엇이 잘못되었는지를 파악할 수 없습니다. 친절하게 나를 안내합니다.
앱 모듈의 build.gradle 명령에서 'compile'com.android.support:cardview-v7:21.0. + ''을 사용하여 카드 lib를 통합하려고 시도합니다. –
오류가 계속 나타납니다. –
에 대한 살펴보기 이 위대한 tut, cardview 구글 자체에 의해 제공됩니다, libgmariotti에 의해 제공 lib 필요가 없습니다 http://treyrobinson.net/blog/android-l-tutorials-part-3-recyclerview-and-cardview/ –