A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.6.3-6040484-windows Daemon #0: Daemon startup failed
Please check if you installed the Windows Universal C Runtime.
This should not happen under normal circumstances, please file an issue if it does.
遇到这种情况,可能是classpath的版本过高。降低版本试试看
我用3.6.3的时候报错了
classpath 'com.android.tools.build:gradle:3.6.3'
降低到3.2.1就解决了
classpath 'com.android.tools.build:gradle:3.2.1'
本文解决了一个常见的Android开发问题,当使用AAPT2时出现的Daemon启动失败错误。通过调整Gradle插件版本从3.6.3降至3.2.1,成功避免了Windows Universal C Runtime安装问题。
1971

被折叠的 条评论
为什么被折叠?



