Aapt2错误android studio [英] Aapt2 error android studio

查看:48
本文介绍了Aapt2错误android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

{

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 启动失败这在正常情况下不应该发生,如果发生,请提出问题.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.2.0-alpha12-4662957-windows Daemon #0: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does.

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

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    }

    推荐答案

    添加android.enableAapt2=false

    Add android.enableAapt2=false

    在 gradle.properties 中

    in gradle.properties

    这篇关于Aapt2错误android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆