首页 > 解决方案 > 进程意外退出。AAPT2 aapt2-3.4.2-5326820-windows Daemon #0: Daemon 启动失败问题

问题描述

我在我的第一个 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 之后出现的。

标签: android

解决方案


将类路径更改'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


推荐阅读