Upgraded to Android studio 3.4 - Aapt2InternalException: AAPT2: Daemon startup failed

后端 未结 8 760
情深已故
情深已故 2020-11-27 17:42

I got Error in new project while build after i upgraded Android studio to 3.4

Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed

8条回答
  •  野性不改
    2020-11-27 18:25

    You might consider disabling the aaptOptions like the following. Add this in the android section in your build.gradle file.

    android {
        aaptOptions.cruncherEnabled = false
        aaptOptions.useNewCruncher = false
    }
    

    And add the following line in your gradle.properties file.

    android.enableAapt2=false
    

提交回复
热议问题