Execution Failed App:Processdebugresources Android Studio

Execution failed app:processDebugResources Android Studio

For me it helped to change the version of buildTools to:

buildToolsVersion "21.0.1"

You will find this setting inside the file app/build.gradle.

How to fix Execution failed for task ':app:processDebugResources'. Android resource linking failed [Android/Flutter]

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.

Execution failed for task ':app:processDebugResources' in Flutter project

Turns out a variety of things needed to be corrected in both project-level and app-level build.gradle and gradle.properties.

In gradle.properties changed

org.gradle.jvmargs=-Xmx1536M

to

org.gradle.jvmargs=-Xmx4608m

In the app-level build.gradle changed both

compileSdkVersion 28

targetSdkVersion 28

to

compileSdkVersion 31

targetSdkVersion 31

In the project-level gradle.build changed:

ext.kotlin_version = '1.3.50'

to

ext.kotlin_version = '1.5.31'

and

classpath 'com.google.gms:google-services:4.3.3'

to

classpath 'com.google.gms:google-services:4.3.10'

Afterwards, all the dependencies fell in place, flutter pub get ran with success and I managed to build my project on my Windows machine. However, on MacOS, some of my dependencies still don't suppor the M1 chip, but the issue is being delt with and until them guess I'll stick to Windows/Linux.

Obs: the package is flutter_blue if anyone is curious.

Execution failed for task app:processDebugResources. Android resource linking failed

Your night theme has an invalid value for android:windowContentOverlay.

Replace with @null instead of null.

<item name="android:windowContentOverlay">@null</item>

Execution failed for task ':app:processDebugResources' even with latest build tools

Set your compileSdkVersion to 23 in your module's build.gradle file.



Related Topics



Leave a reply



Submit