intelliJ android 项目中的 appmergeDebugResources 任务执行失败
execution failed for appmergeDebugResources task in intelliJ android project
我无法克服这个错误。我正在使用 IntelliJ 2020.1.1 并且我已经尝试了所有建议的解决方案 - 升级(6.1)和降级(6.0 和 5.6.4)gradle,更改 gradle 属性,clean/rebuild等等。没有任何效果。
正在执行任务:[:app:assembleDebug] 在项目 D:\MyApplication1
Task :app:preBuild UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:compileDebugAidl NO-SOURCE
Task :app:generateDebugBuildConfig UP-TO-DATE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:javaPreCompileDebug UP-TO-DATE
Task :app:mainApkListPersistenceDebug UP-TO-DATE
Task :app:generateDebugResValues UP-TO-DATE
Task :app:generateDebugResources UP-TO-DATE
Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
Task :app:extractDeepLinksDebug UP-TO-DATE
Task :app:processDebugManifest UP-TO-DATE
Task :app:mergeDebugShaders
Task :app:compileDebugShaders
Task :app:generateDebugAssets
Task :app:mergeDebugAssets
Task :app:mergeDebugResources FAILED
失败:构建失败,出现异常。
出了什么问题:
任务“:app:mergeDebugResources”执行失败。
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #3: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #4: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #5: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #6: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #7: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #8: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #9: 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.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #10: 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.
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
获取更多帮助
此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。
使用“--warning-mode all”来显示各个弃用警告。
参见 https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings
33 秒内构建失败
11 个可操作任务:4 个已执行,7 个已更新`
安装 Universal C Runtime 后有效。
每次尝试安装 CRT 时,我都会收到 "The update is not applicable to your computer" 消息。原来我的系统上没有安装 Service pack 1。这次更新后安装了CRT,我的项目也终于执行了。
我无法克服这个错误。我正在使用 IntelliJ 2020.1.1 并且我已经尝试了所有建议的解决方案 - 升级(6.1)和降级(6.0 和 5.6.4)gradle,更改 gradle 属性,clean/rebuild等等。没有任何效果。
正在执行任务:[:app:assembleDebug] 在项目 D:\MyApplication1
Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild UP-TO-DATE Task :app:compileDebugAidl NO-SOURCE Task :app:generateDebugBuildConfig UP-TO-DATE Task :app:compileDebugRenderscript NO-SOURCE Task :app:javaPreCompileDebug UP-TO-DATE Task :app:mainApkListPersistenceDebug UP-TO-DATE Task :app:generateDebugResValues UP-TO-DATE Task :app:generateDebugResources UP-TO-DATE Task :app:createDebugCompatibleScreenManifests UP-TO-DATE Task :app:extractDeepLinksDebug UP-TO-DATE Task :app:processDebugManifest UP-TO-DATE Task :app:mergeDebugShaders Task :app:compileDebugShaders Task :app:generateDebugAssets Task :app:mergeDebugAssets Task :app:mergeDebugResources FAILED
失败:构建失败,出现异常。
出了什么问题: 任务“:app:mergeDebugResources”执行失败。
Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #3: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #4: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #5: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #6: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #7: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #8: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #9: 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. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.6.0-rc01-6040484-windows Daemon #10: 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.
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 使用“--warning-mode all”来显示各个弃用警告。 参见 https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings
33 秒内构建失败 11 个可操作任务:4 个已执行,7 个已更新`
安装 Universal C Runtime 后有效。 每次尝试安装 CRT 时,我都会收到 "The update is not applicable to your computer" 消息。原来我的系统上没有安装 Service pack 1。这次更新后安装了CRT,我的项目也终于执行了。