Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android studio中的资源错误_Android_Android Linearlayout - Fatal编程技术网

android studio中的资源错误

android studio中的资源错误,android,android-linearlayout,Android,Android Linearlayout,失败:生成失败,出现异常 出了什么问题: 任务“:app:processDebugResources”的执行失败 无法处理资源,有关详细信息,请参阅上面的aapt输出 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力 得到更多的帮助 在4s中生成失败 以上是我在启动项目时遇到的错误…选项如下 1) 从菜单中选择文件,然后选择使缓存无效/重新启动 2) 将这些行添加到build.gr

失败:生成失败,出现异常

  • 出了什么问题: 任务“:app:processDebugResources”的执行失败

    无法处理资源,有关详细信息,请参阅上面的aapt输出

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力

  • 得到更多的帮助

在4s中生成失败 以上是我在启动项目时遇到的错误…

选项如下

1) 从菜单中选择文件,然后选择使缓存无效/重新启动

2) 将这些行添加到build.gradle

configurations {
 all*.exclude group: 'com.android.support', module: 'support-v4'
}

3) 您的任何包含不存在密钥的XML文件出现问题,请检查您的XML文件。

发布此错误的上方(上部)日志针对mac/linux执行以下命令。/gradlew:app:processDebugResources--stacktrace For Windows use gradlew,并将回答附加到问题中。您可以发布窗口对此错误的说明吗?正如前面的评论员所说,我们需要查看包含错误的日志。您可以转到Android Studio中的终端窗口,运行“gradlew clean assembleDebug”,并将该命令的输出粘贴到此处。