android - ColorPrimary,colorAccent replaced in Eclipse -
i have style in android studio project want use eclipse project make error
<style name="apptheme" parent="theme.appcompat.light.darkactionbar"> <!-- customize theme here. --> <item name="colorprimary">@color/colorprimary</item> <item name="colorprimarydark">@color/colorprimarydark</item> <item name="coloraccent">@color/coloraccent</item> </style>
and want use sdk
<uses-sdk android:minsdkversion="8" android:targetsdkversion="21" />
error is
error: error: no resource found matches given name: attr 'colorprimarydark'.
error: error: no resource found matches given name: attr 'coloraccent'.
update project.properties file of appcompat v7, has:target=android-19 target=android-21
also update google play services library (by update mean update in sdk manager , re-import etc)
fixed issue me. appcompat_v7 project targeted @ 4.4.2 failed link v21 libs.
Comments
Post a Comment