【发布时间】:2018-10-13 14:27:31
【问题描述】:
我已经在 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 的菜鸟。在此先感谢您的帮助。
【问题讨论】:
标签: android android-studio build ubuntu-16.04 build-error