Android R14 SDK-错误:未找到与给定名称匹配的资源(在“background”处,值为…)
我花了很多时间寻找解决方案,但没有找到答案 由于我已将Android SDK更新为R14 Android 4.0,因此出现错误:在“background with value”@layout/card_top”中未找到与给定名称匹配的资源 我的xml文件中的部分如下所示:Android R14 SDK-错误:未找到与给定名称匹配的资源(在“background”处,值为…),android,xml,background,Android,Xml,Background,我花了很多时间寻找解决方案,但没有找到答案 由于我已将Android SDK更新为R14 Android 4.0,因此出现错误:在“background with value”@layout/card_top”中未找到与给定名称匹配的资源 我的xml文件中的部分如下所示: <LinearLayout android:id="@+id/card_top_bkg" android:layout_height="fill_parent" android:la
<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文件位于单独的库文件夹中,并且与基本项目不在同一个filder中。如果我将card_top.xml文件直接放在基本项目文件夹中的layout/card_top.xml下,它就会工作
知道如何将xml文件保留在库文件夹中吗?也许问题在r15中解决了,这只是一个bug修复版本: http://developer.android.com/sdk/eclipse-adt.html