Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/211.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android R14 SDK-错误:未找到与给定名称匹配的资源(在“background”处,值为…)_Android_Xml_Background - Fatal编程技术网

Android R14 SDK-错误:未找到与给定名称匹配的资源(在“background”处,值为…)

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

我花了很多时间寻找解决方案,但没有找到答案

由于我已将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: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