进程意外退出。 AAPT2 aapt2-3.4.2-5326820-windows守护程序#0:守护程序启动失败问题

时间:2019-08-05 13:27:50

标签: android

我的第一个android(KOTLIN)项目中出现一些问题,显示以下错误。

Cause 1: java.util.concurrent.ExecutionException: 
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2- 
3.4.2-5326820-windows Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue 
if it does.

buildscript {
ext.kotlin_version = '1.3.31'
repositories {
    google()
    jcenter()

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.4.2'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

如何解决此问题。这些问题是我的android studio升级后出现的。

1 个答案:

答案 0 :(得分:2)

将类路径'com.android.tools.build:gradle:3.4.2'更改为类路径'com.android.tools.build:gradle:3.3.2'或以下3.3.2

我从此网站获得了答案:https://discuss.gradle.org/t/aapt2-daemon-startup-failed/32358