AAPT2 aapt2-3.4.0-5326820-windows Daemon Error

2020-07-22 17:15发布

when I update my Android Studio version 3.3.2 to 3.4 It Cause Problem of

com.android.builder.internal.aapt.v2.Aapt2,InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #0: Daemon startup failed.

I also create a new Project it build successfully but when i run in device then it gives error

My distributionUrl is https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

My Gradle Version com.android.tools.build:gradle:3.4.0

标签: android
3条回答
Deceive 欺骗
2楼-- · 2020-07-22 17:30

If you have updated the Android studio to 3.4 or using Android Studio 3.4 there is issue with gradle version downgrade the gradle version work fine

Change

  classpath 'com.android.tools.build:gradle:3.4'

to

  classpath 'com.android.tools.build:gradle:3.3.2'
查看更多
混吃等死
3楼-- · 2020-07-22 17:30

From 3.4 onward you need to install the Windows Universal C Runtime (https://support.microsoft.com/en-ca/help/2999226/update-for-universal-c-runtime-in-windows)

查看更多
乱世女痞
4楼-- · 2020-07-22 17:31

I had solved it by

  1. Share your android project on GitHub
  2. Clone the project with a new location
  3. build it
查看更多
登录 后发表回答