Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AAPT2 process unexpectedly exit

When I try to run My project in Android 14 ,I noticed one error like

AAPT2 process unexpectedly exit. Error output: aapt2.exe W 05-04 15:56:18 7008 7396 LoadedArsc.cpp:682] Unknown chunk type '200'.

android {

     compileSdkVersion = "android-UpsideDownCake"
    dataBinding {
        enabled = true
    }

    defaultConfig {
        applicationId "com.pro.sample"
        minSdkVersion 23

        targetSdkVersion "android-UpsideDownCake"
        versionCode 84
        versionName "5.7"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            debugSymbolLevel 'FULL'
        }
        ndkVersion "25.2.9519653"
    }
}

This is my App level gradle file, how can I this ?

like image 219
android.dev Avatar asked Feb 20 '26 08:02

android.dev


1 Answers

I had this problem when compiling the app to target sdk version 34

  • Upgrade AGP dependency from 7.0.4 to 7.4.2
  • Upgrade Gradle version to 7.5
  • Upgrade Gradle plugins

and the problem was solved.

like image 76
dandevu Avatar answered Feb 24 '26 18:02

dandevu