【问题标题】:How to fix Error:Execution failed for task ':app:mergeDebugResources如何修复错误:任务':app:mergeDebugResources的执行失败
【发布时间】:2017-10-09 06:45:16
【问题描述】:

错误:任务 ':app:mergeDebugResources' 执行失败。

C:\Users\Ayuso.android\build-cache\b2c92a1a34e3ead110e3f2338c3550cf7dccb6d4\output\res\values-in\values.xml:1:1:错误:prolog 中不允许内容。

【问题讨论】:

  • build.gradle在哪里
  • 我该如何解决这个问题?我阿布

标签: android android-gradle-plugin


【解决方案1】:

您的values.xml 中存在错误,它位于res/values-es/ 中。 values.xml 必须包含 有效的 XML 标记。如果文件是空白文本文件,则会出错。你需要这样的东西:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- Add your layout here -->

</LinearLayout>

【讨论】:

    【解决方案2】:

    我修复它下载新版本的 android studio beta..

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多