android - 进程意外退出。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 之后出现的。
解决方案
将类路径更改'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
推荐阅读
- django - 如何在 django 应用程序中创建和过滤相关模型对象
- android - 向左滑动删除,向右滑动旋转imageview
- symfony - 我的 Symfony 表单错误总是全局性的。未链接到应该的特定字段
- reactjs - 带有文件上传的语义 UI React 进度条
- sql - SQL:使用通配符时结果不同?
- acumatica - 如何启用自定义属性?(可以在课堂上分配,但不显示交易)
- java - 如何将 JSON 数据作为多个对象检索
- python - Pandas groupby agg - 如何获得计数?
- ios - NSLayoutConstraints 可以用十进制常量渲染吗?
- javascript - 无法使用回调函数更改变量,但控制台日志记录有效