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.
Android Studio - processDebugResources failed
Well, honestly: the way I fixed it was by reinstalling Android Studio after doing a System Recovery.
My virus scanner was interrupting the gradle.build, causing it to fail every time.
So I did a System Recovery to the point where I didn't install a lot of stuff, reinstalled Android Studio again and it worked perfectly.
So there's no exact cause to this, just some shitty stuff with virus scanners.
If any on you still have this, I think it's due to a lot of different reasons.
Good luck fixing yours!
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
CSS Reference to Phone's Emoji Font
Firestorepagingadapter Not Receiving Realtime Updates
How to Keep The Oauth Consumer Secret Safe, and How to React When It's Compromised
Difference Between <Supports-Screens> and <Compatible-Screens> on Android
App Crashes on Startup Due to Java.Lang.Illegalargumentexception: Column '_Id' Does Not Exist
Android 4.0.1 Breaks Webview HTML 5 Local Storage
How to Create a Service Which Continuously Monitors App Usage Information
App Crash After Activity Has Been Killed in Background
How to Style Appcompat-V7 Toolbar Like Theme.Appcompat.Light.Darkactionbar
Why to Use Handlers While Runonuithread Does The Same
Best Way to Show a Loading/Progress Indicator
How to Add Firebase Database Rules Without Authentication
Flutter: Upgrade The Version Code for Play Store
Can an Android Device Act as an Ibeacon
Scaling a Phonegap App for Different Android Screen Sizes/Densities
Read Logs from All Apps on Android from Within an App for Android 4.2+