. Advertisement .
..3..
. Advertisement .
..4..
Android is a Linux-based operating system designed for touch screen mobile devices such as smartphones and tablets. Initially, Android was developed by Android Inc. with financial support from Google and later acquired by Google itself in 2005.
When you try to do anything automated in the tool, the following error appears: “A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade in Android” Don’t worry too much. This post will support you in resolving the error with the best solution.
When Will The Error Occur?
You received the following error when you ran the release test while executing the code.
Execution failed for task:
am:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/.gradle/caches/transforms-2/files-2.1/ff28653768e2ccb1135467db3600af3a/core-1.7.0-alpha02/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
The Effective Methods For The Error “A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade in Android”
When you encounter this error, the direction for you is to check the Plugin again to see if it is compatible or not. Here are some solutions we give you to solve the above problem. You can refer to and choose the method that suits your current conditions.
1) Change to androidx.core:core-ktx:1.0.6
You need to edit this line in your app/build.gradle file.
androidx.core:core-ktx:+
You can replace it with this code.
androidx.core:core-ktx:1.6.0
And here is an example.
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
googlePlayServicesAuthVersion = "16.0.1"
androidXCore = "1.6.0"
}
2) Create a new key password
Following the steps:
1. Closed and re-opened the project
2. Enter the Keystore password prior to taking the building
3) Run command in Android Studio
Try the below command within Android Studio to solve this issue:
File > Invalidate Caches/Restart...
Also, upgrade and downgrade the Android Gradle build tool to the most recent stable version. It can help you.
4) Upgrade the compile SDK to Android 31
If you’re using androidx.core:core-ktx:+, this will find the most recent version, which is 1.7.0, and the most recent version requires the Android 31 compile SDK. So you’re dealing with this problem.
Here are two potential solutions.
You can use a specific version, use androidx.core:core-ktx:${version} instead of androidx.core:core-ktx:+
Or you have to upgrade the SDK compile to Android 31.
Conclusion
Those simple approaches presented above are a simple solution to the aforementioned major error: “A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade in Android“.
Please leave all your concerns in the comments section if you have any further questions. I wish you all an effective day with your tool.
Leave a comment