* What went wrong: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource linking failed android studio code example
Example: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource linking failed
Today, I got the same error at my project which I was working on yesterday without any problem.
Some upgrade causes this error IMO, my solution is:
Open the project via Android Studio
Open android/build.gradle and android/app/build.gradle
Just correct things what IDE warns about, it usually warns your SDK, Kotlin and Gradle versions etc.
It's not mandatory but you can check your .bashrc exports or environment variables, sometimes it can fix some problems.
Edit: When you are updating your SDK versions, don't forget to upgrade also your project dependencies.