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

后端 未结 8 767
情深已故
情深已故 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:08

    I am also facing this issue. I have tried all the above answers but not working. I have checked these are the questions and their answers. Question 1, Question 2, Question 3 and I have tried to install Windows Universal C Runtime library also.

    I have tried to set the Gradle plugin version 3.5.0 and Gradle version 5.1.0 or 5.6.1 but then also not working. I have checked this google tracker issue also then also not got the answer.

    After spending almost 6 to 7 hours I got the solution and it is below:

    1. Android Studio 3.6.2
    2. Gradle Plugin Version 3.3.2
    3. Gradle version 4.10.3

    Project level build.gradle file:

    buildscript {
    
        repositories {
            google()
            jcenter()
    
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.3.2'
        }
    }
    
    allprojects {
        repositories {
            google()
            jcenter()
    
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

    This is gradle-wrapper.property file:

    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
    

    I hope someone will get help.

提交回复
热议问题