2014-11-15 33 views
3

我剛剛在eclipse上啓動了一個新的android項目。作爲項目需求,我已將appcompact-v7支持庫添加到我的android工作區中。瞭解appcompact值-v11/themes_base.xml錯誤

一旦appcompat導入完成,我在eclipse控制檯中出現以下錯誤。

[2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:338: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:29: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:345: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:37: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\android_space\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:352: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:359: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:53 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:53: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:53 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:338: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:29: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:345: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:37: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:352: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v11\themes_base.xml:359: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

[2014-11-15 17:41:54 - android-support-v7-appcompat] [2014-11-15 17:41:54 - android-support-v7-appcompat] D:\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v14\themes_base.xml:53: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'. [2014-11-15 17:41:54 - android-support-v7-appcompat]

我知道這個錯誤是在各種值文件夾中的themes_base.xml文件中。

請幫我解決這個錯誤。

回答

0

您還需要添加v4庫,並確保將這兩個庫設置爲per these instructions

+0

這沒有奏效傑夫。感謝您的回覆。 – BigB

0

您可以嘗試在appcompat_v7項目的AndroidManifest.xml上更改您的android:minSdkVersion

的AndroidManifest.xml上appcompat_v7

前:

android:minSdkVersion="7" 

android:minSdkVersion="8" 

就我而言,我已經得到了Android的默認值:的minSdkVersion =「7 「當我變成」8「時就解決了。希望它有助於:)

+2

對不起,我剛剛看到你的答案,問題已修復,因爲我刪除了Android SDK的所有組件並重新安裝。到目前爲止沒有問題,我沒有得到任何錯誤。 – BigB

+0

@BigB,所以你也必須刪除SDK v21? – l33t