簡體   English   中英

Gradle 構建失敗 android Studio

[英]Gradle build failed android Studio

我在構建 android 項目時遇到以下問題,我嘗試使緩存無效並重新啟動 android 工作室,但它沒有幫助 - ;

FAILURE:構建完成,有 4 次失敗。

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':businessProducts:compileDebugLibraryResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 18 exceptions were raised by workers:
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #38: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #39: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #40: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #41: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #42: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #43: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #44: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #45: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #46: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #47: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #48: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #49: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #50: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #51: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #52: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #53: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #54: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #55: 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':contactsview:compileDebugLibraryResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 4 exceptions were raised by workers:
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #64: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #66: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #67: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #70: 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.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':avatarbuttons:compileDebugLibraryResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 11 exceptions were raised by workers:
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #56: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #57: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #58: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #59: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #60: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #61: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #62: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #63: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #65: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #68: 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.
     com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.0.0-6051327-windows Daemon #69: 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.
==============================================================================

4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeBetaDebugResources'.
> 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 #72: 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 #71: 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 #77: 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 #74: 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 #73: 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 #75: 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 #78: 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 #76: 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.

注意:我正在運行 windows 10 並且沒有官方的 windows 通用 C 運行時可用。 我也在運行 Android gradle 插件 4.0.0 和 gradle 版本 6.1.1

我正在運行 windows 10 並且沒有官方的 windows 通用 C 運行時可用

這個? https://www.microsoft.com/en-us/download/details.aspx?id=48234

當 Windows 10 發生這種情況時,請務必先聯系您的安全團隊。 對於這種特定情況,安全團隊已禁用/限制了某些組件,一旦我與他們聯系,此問題就得到了解決。

對於 Windows 8.1 及以下版本,請務必先檢查此答案

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM