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
andandroid/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
Android Push Notifications: Icon Not Displaying in Notification, White Square Shown Instead
How to Handle Dynamic Json in Retrofit
Noclassdeffounderror For Code in an Java Library on Android
How to Detect Android App Uninstall
Failed to Resolve: Com.Google.Firebase:Firebase-Core:11.2.0
Android Fragments and Animation
How to Align Views at the Bottom of the Screen
Android: Storing Username and Password
Android Starting Service At Boot Time , How to Restart Service Class After Device Reboot
Show Compose Sms View in Android
Using Facebook Sdk in Android Studio
Soft Keyboard Open and Close Listener in an Activity in Android
How to Change the Background Color of Action Bar'S Option Menu in Android 4.2
How to Layout Text to Flow Around an Image
Proper Implementation of Viewpager2 in Android
Android: Progressdialog.Show() Crashes with Getapplicationcontext