Android support library appcompat V7: actionmodesharedrawable resource not found

I reinstalled the V7 appcompat library from the SDK manager in eclipse. However, the library itself told me that there were errors in several different XML files

This is one of the theme files:

<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>

And error:

error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

Any ideas?

resolvent:

The eclipse part of this answer can help you solve the problem

What you need to do is open the project.properties file of android-support-v7-appcompat and change the target from target = android-19 to target = android-21. Clean your project and restart your eclipse to take effect

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>