java - Android Studio 4.0:构建失败|请检查您是否安装了Windows Universal C Runtime

标签 java android windows android-studio gradle

我最近在装有8.1 Windows OS的64位Windows计算机中下载了Android Studio 4.0。我无法在其上构建任何应用程序。我收到以下错误。 Windows Universal C Runtime已经安装在我的系统中。我尝试了其他线程中建议的许多其他解决方案,但没有一个对我有用,因此我无法找出可行的方法。

> * What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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-4.0.0-6051327-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.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 38s
16 actionable tasks: 2 executed, 14 up-to-date

最佳答案

我有同样的问题,我下载了AS的canary版本,但仍然收到相同的错误
任务':app:mergeDebugResources'的执行失败
ScreenShot

关于java - Android Studio 4.0:构建失败|请检查您是否安装了Windows Universal C Runtime,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62600210/

相关文章:

java rmi 服务器主机名

java - 我错过了什么? NumberFormatException 错误

java - Android如何响应ACTION_VIEW/ACTION_SEND?

android - 使用 android-databinding 方法格式化友好的日期

java - 在 Android 上向/从文件加载 Bundle

c++ - 可以使用SPACE而不是ENTER来接受C++中的输入吗?

WPF 应用程序在呈现文本时卡住(wpfgfx 问题)

java - 匹配器找到一个模式,但抛出 No match available on `start` 方法

java - 我的自定义 Activity 中的谷歌地图

windows - Windows 上应用程序颜色(背景、按钮等)的指南?