我从Eclipse的SDK管理器中重新安装了v7 appcompat库。然而,库本身告诉我有几个不同的xml文件存在错误。
这是其中一个主题文件:
<resources>
<style name="Base.V14.Theme.AppCompat" parent="Base.V11.Theme.AppCompat" />
<style name="Base.V14.Theme.AppCompat.Light" parent="Base.V11.Theme.AppCompat.Light" />
<style name="Base.V14.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog" />
<style name="Base.V14.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog" />
<style name="Base.Theme.AppCompat" parent="Base.V14.Theme.AppCompat">
<item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
<item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
<item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
<item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
<item name="android:actionModeShareDrawable">?actionModeShareDrawable</item>
</style>
<style name="Base.Theme.AppCompat.Light" parent="Base.V14.Theme.AppCompat.Light">
<item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
<item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
<item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
<item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
<item name="android:actionModeShareDrawable">?actionModeShareDrawable</item>
</style>
<style name="Base.Theme.AppCompat.Dialog" parent="Base.V14.Theme.AppCompat.Dialog">
<item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
<item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
<item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
<item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
<item name="android:actionModeShareDrawable">?actionModeShareDrawable</item>
</style>
<style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V14.Theme.AppCompat.Light.Dialog">
<item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
<item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
<item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
<item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
<item name="android:actionModeShareDrawable">?actionModeShareDrawable</item>
</style>
</resources>
并且出现了以下错误:
error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
有什么想法吗?