简体   繁体   English

Gradle构建错误

[英]Error in gradle build

Gradle build finishes with one error: Gradle构建完成时出现一个错误:

Error:Execution failed for task ':app:mergeDebugResources'.
> C:\Users\User\Desktop\MyApplication\app\build\intermediates\res\merged\debug\values-v18\values-v18.xml: Error: java.lang.RuntimeException: java.io.EOFException: End of input at line 1 column 1

What is the solution? 解决办法是什么?

It looks that you have an issue with format XML in 看来您的XML格式存在问题

C:\\Users\\User\\Desktop\\MyApplication\\app\\build\\intermediates\\res\\merged\\debug\\values-v18\\values-v18.xml C:\\ Users \\ User \\ Desktop \\ MyApplication \\ app \\ build \\ intermediates \\ res \\ merged \\ debug \\ values-v18 \\ values-v18.xml

Try to reach that file and check what is the issue .. may be unescaped character or other format issue. 尝试访问该文件并检查是什么问题..可能是未转义的字符或其他格式的问题。

Then try to clean and build project again 然后尝试清理并再次构建项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM