android - The following code has 2 problems and also resulted in a missing file -


<!-- base application theme. --> <style name="theme.appcompat.light.noactionbar" parent="@style/theme.appcompat.light">     <!--  customize theme here. -->     <item name="android:windownotitle">true</item>     <item name="android:colorprimarydark">@color/colorprimarydark</item>     <item name="android:colorprimary">@color/colorprimary</item>     <item name="android:coloraccent">@color/coloraccent</item>     <item name="android:textcolorprimary">@color/colortextprimary</item>     <item name="android:textcolorsecondary">@color/colortextsecondary</item> </style> 

this file styles.xml in 1 of projects , there 2 errors in console:

error: error: no resource found matches given name (at 'android:coloraccent' value '@color/coloraccent').

error: error: no resource found matches given name (at 'android:textcolorprimary' value '@color/colortextprimary').

the r.java file missing.

i have been dealing problem since 2 days , have searched lot many tabs open , tried many things. still haven't found solution can remove errors , r.java file. please me solve problem. thank much.

here color.xml

<resources>     <color name="list_item_title">#fff</color>     <color name="list_background">#303030</color>     <color name="list_background_pressed">#992416</color>     <color name="list_divider">#303030</color>     <!--  <color name="list_divider">#272727</color>-->     <color name="counter_text_bg">#626262</color>     <color name="counter_text_color">#c5c4c4</color>      <!-- main color of layouts(green) -->     <color name="content_green">#00998a</color>     <color name="content_green2">#00bb00</color>     <color name="content_text">#ffffff</color>      <!-- colors in flashcard -->     <color name="multiple_red">#df4356</color>     <color name="multiple_green">#00998a</color>     <color name="multiple_grey">#9c9ea1</color>  </resources> 


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -