gpt4 book ai didi

Android studio 构建错误,在 ubuntu 中错误日志为 "process unexpectedly exit"

转载 作者:太空宇宙 更新时间:2023-11-03 13:40:32 29 4
gpt4 key购买 nike

我已经在 ubuntu 中安装了 android studio,每当我尝试创建一个新项目时,构建都会失败,并显示错误提示 process unexpectedly exit我使用的是 ubuntu 16.02 LTS 版本和 android studio 3.2.1 版本。

这是我的构建日志。

org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:mergeDebugResources 
Caused by: org.gradle.internal.UncheckedException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.2.1-4818971-linux Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does
Caused by: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.2.1-4818971-linux Daemon #1: Daemon startup failed
Caused by: com.android.builder.internal.aapt.v2.Aapt2InternalException: Failed to start AAPT2 process.
Caused by: java.io.IOException: Process unexpectedly exit.
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.startProcess(Aapt2DaemonImpl.kt:110)
... 9 more

我试图在网上找到任何关于这方面的帮助,但还没有找到任何有用的帮助。如果这是正常的事情,我很抱歉提出这个问题。我是 linux 和 android studio 的新手。在此先感谢您的帮助。

最佳答案

我也一样。我也有 ho 解决方案,但解决方法。在项目级build.gradle 降级gradle 版本

类路径 'com.android.tools.build:gradle:3.2.x'

类路径 'com.android.tools.build:gradle:3.1.4'

在我的例子中,它构建了项目。希望有人告诉正确的解决方案。

关于Android studio 构建错误,在 ubuntu 中错误日志为 "process unexpectedly exit",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52793948/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com