Build failed on AGP 4.2.2 with gradle 6.7.1 when compileSdkVersion 34
1

I need to use "androidx.credentials:credentials-play-services-auth", which requires compileSdkVersion to be >=34

My environment:

AGP 4.2.2 / gradle 6.7.1 / 34

The error is:

Execution failed for task ':ElvesMission:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > AAPT2 aapt2-4.2.2-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

when exclude facebook-android-sdk in app module dependency, build is successful.

What should I check for this error?

Tuo Yu
Asked about a month ago