Android Studio 4.1.1我在哪里详细了解错误?执行com.android.build.gradle.internal.tasks.Workers $ ActionFacade时发生故障 [英] Android Studio 4.1.1 Where i get detal about error? A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
问题描述
和类路径'com.android.tools.build:gradle:4.1.1'
Hi, after upgrading to Android Studio 4.1.1
and classpath 'com.android.tools.build:gradle:4.1.1'
我在重建项目,调试和运行时遇到错误
I get an error for Rebuild Project, Debug and Run
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.1-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
我尝试
- org.gradle.jvmargs = -Xmx4608m
- 无效并重新启动
- 制作项目(无错误)
- 清洁项目
我使用
Windows10
distributionUrl = https://services.gradle.org/distributions/gradle-6.5-all.zip
i use
Windows10
distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip
我在哪里详细了解错误? 该如何解决?
推荐答案
我遇到了同样的问题,并用它来解决.
I had the same problem and use this to fix.
在gradle-wrapper属性中,我定义了Gradle版本6.1.1
In gradle-wrapper properties I defined Gradle version 6.1.1
distributionUrl = https://services.gradle.org/distributions/gradle-6.1.1-all.zip
然后在build.gradle项目中设置版本4.0.2
And in the project build.gradle I set version 4.0.2
classpath'com.android.tools.build:gradle:4.0.2'
字体: 查看全文