I have a problem that's I can't run an app on my phone, it does not compile on AS.
Error:No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
Error:No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:BUILD FAILED
I have tried replacing color
with item
but the error message is this one:
Error:Error: Unsupported node 'item' Error:Execution failed for task ':app:mergeDebugResources'. C:\Users\X\AndroidStudioProjects\X\app\src\main\res\values\styles.xml: Error: Unsupported node 'item'
This is my "style.xml" file:
<resources>
<color name="colorPrimary">#21222c</color>
<color name="colorPrimaryDark">#21222c</color>
<color name="colorAccent">#fff</color>
<!-- blue style gradient -->
<color name="bluestartcolor">#47f9fe</color>
<color name="blueendcolor">#1295fd</color>
<!-- orange style gradient -->
<color name="orangestartcolor">#feed64</color>
<color name="orangeendcolor">#dda660</color>
<!-- pink style gradient -->
<color name="pinkstartcolor">#fd75a5</color>
<color name="pinkendcolor">#ea1e77</color>
<!-- purplle style gradient -->
<color name="purplestartcolor">#f75fe1</color>
<color name="purpeendcolor">#c425ec</color>
<!-- green style gradient -->
<color name="greenstartcolor">#b4fa51</color>
<color name="greenendcolor">#78cb59</color>
</resources>
And this is my "colors.xml" file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#21222c</color>
<color name="colorPrimaryDark">#21222c</color>
<color name="colorAccent">#fff</color>
</resources>
If you need anything else that I should let you guys know, let me know about it.