【问题标题】:merge debug resources FAILED合并调试资源失败
【发布时间】:2015-06-24 14:00:17
【问题描述】:

我使用的是 Android Studio,在项目构建过程中出现此错误:

:app:mergeDebugResources FAILED 错误:任务执行失败 ':app: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>

我怎样才能找到解决方案?

【问题讨论】:

    标签: java android android-studio android-styles android-debug


    【解决方案1】:

    这里:

    &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"/&gt;

    你用/&gt;关闭它

    你应该喜欢

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    
        <item........
    
    </style>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-27
      • 1970-01-01
      • 1970-01-01
      • 2014-11-16
      • 2020-08-18
      • 1970-01-01
      相关资源
      最近更新 更多