Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"AAPT2 process unexpectedly exit. Error output:" in testing

enter image description here

My app is having trouble building as when I try to build it it pops up with the error shown in the screen below. I have tried the putting the following in the gradle.properties file:

AAPT2.enabled=false
android.enableAapt2=false

but neither of these work in 3.3 as it says disabling aapt2 is deprecated and will be enabled anyway, kicking up the same error. I am looking for a long term solution preferably, but any suggestions will be deeply appreciated. Thanks in advance.

like image 475
CoderMuffin Avatar asked Nov 21 '25 10:11

CoderMuffin


1 Answers

This is how I fixed this issue for myself (Thanks to this Youtube video) In your Project level build.gradle file in Android studio: upgrade your gradle build tool like this:

Old:

    dependencies {
     classpath 'com.android.tools.build:gradle:3.3.2'
    
}

New:

    dependencies {

    classpath 'com.android.tools.build:gradle:3.4.0'
    
}
like image 151
kc ochibili Avatar answered Nov 24 '25 05:11

kc ochibili