我正在使用Android Studio,在项目构建过程中出现此错误:
:app:mergeDebugResources FAILED错误:任务执行失败 ':应用程序:mergeDebugResources'。 文件C中不支持的节点“项目”:\ Users \ Mh2 \ Desktop \ IlMartino2doppiofinal \ app \ src \ main \ res \ values \ styles.xml
我试图清理并重建项目,但似乎不是解决方案。 这里有我的styles.xml文件:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"/>
<!-- Customize your theme here. -->
<item name="homeAsUpIndicator">@drawable/ic_drawer</item>
<item name="android:homeAsUpIndicator">@drawable/ic_drawer</item>
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/black</item>
<!-- colorPrimaryDark is used for the status bar
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-->
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight & colorSwitchThumbNormal. -->
<item name="colorControlNormal">@color/purple</item>
<item name="colorControlActivated">@color/red</item>
<item name="colorControlHighlight">@color/darkred</item>
<item name="colorSwitchThumbNormal">@color/darkorange</item>
</resources>
我如何找到解决方案?
答案 0 :(得分:0)
这里:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"/>
您使用/>
你应该像
一样<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item........
</style>