问题描述
{
FAILURE:构建失败,出现异常.
FAILURE: Build failed with an exception.
出了什么问题:任务:app:mergeDebugResources"执行失败.
What went wrong:Execution failed for task ':app:mergeDebugResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.2.0-alpha12-4662957-windows Daemon #0: Daemon 启动失败这在正常情况下不应该发生,如果发生,请提出问题.
试试:使用 --stacktrace 选项运行以获取堆栈跟踪.使用 --info 或 --debug 选项运行以获取更多日志输出.使用 --scan 运行以获得完整的见解.
Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to getmore log output. Run with --scan to get full insights.
}
推荐答案
添加android.enableAapt2=false
Addandroid.enableAapt2=false
在 gradle.properties 中
in gradle.properties
这篇关于Aapt2错误android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!