1
我搜索了很多修復時間,但沒有找到答案。Android R14 SDK - 錯誤:找不到與給定名稱匹配的資源(在'background'處有值...)
既然我已經更新了Android SDK到R14(Android 4.0版本),我得到的錯誤"Error: No resource found that matches the given name (at 'background with value '@layout/card_top').
在我的XML文件的部分是這樣的:
<LinearLayout
android:id="@+id/card_top_bkg"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:background="@layout/card_top"
android:layout_weight="2">
的「card_top.xml 「文件位於單獨的庫文件夾中,與基礎項目不在同一個文件夾中。如果我將card_top.xml文件直接放在基本項目文件夾的layout/card_top.xml下,它就可以工作。
知道任何人如何讓它在庫文件夾中保留xml文件嗎?
我已經更新至R15和問題仍然是一樣的。 – user1018255