找不到与给定名称匹配的资源:attr'colorAccent'

时间:2015-10-07 03:50:26

标签: android eclipse

请帮助我..我哪里错了?

Using

Error

感谢。

1 个答案:

答案 0 :(得分:0)

它可以帮助你: -

 <resources>
 <!-- inherit from the material theme -->
 <style name="AppTheme" parent="android:Theme.Material">
 <!-- Main theme colors -->
 <!--   your app branding color for the app bar -->
 <item name="android:colorPrimary">@color/primary</item>
 <!--   darker variant for the status bar and contextual app bars -->
 <item name="android:colorPrimaryDark">@color/primary_dark</item>
 <!--   theme UI controls like checkboxes and text fields -->
 <item name="android:colorAccent">@color/accent</item>
 </style>
</resources>

找到here