Hello Guys, How are you all? Hope You all Are Fine. Today When I ran the test for release while executing my code I am facing the following error A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade in android. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error Occurs ?
- How To Solve A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error ?
- Solution 1: Change to androidx.core:core-ktx:1.0.6
- Solution 2: upgrade the compile SDK to Android 31
- Summary
How A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error Occurs ?
Today When I ran the test for release while executing my code I am facing the following error.
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.
How To Solve A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error ?
- How To Solve A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error?
To Solve A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error Just open your app/build.gradle file and change this line. androidx.core:core-ktx:+ replace with androidx.core:core-ktx:1.6.0 Here is an Example. If you are using androidx.core:core-ktx:+ then this will find the latest version of androidx.core:core-ktx:+ and the latest one is 1.7.0 and the latest version needs the Android 31 compile SDK. So that You are facing this issue. Here is Two Possible Solution use a specific version, use androidx.core:core-ktx:${version} instead of androidx.core:core-ktx:+ upgrade the compile SDK to Android 31
- A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
To Solve A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error Just open your app/build.gradle file and change this line. androidx.core:core-ktx:+ replace with androidx.core:core-ktx:1.6.0 Here is an Example. If you are using androidx.core:core-ktx:+ then this will find the latest version of androidx.core:core-ktx:+ and the latest one is 1.7.0 and the latest version needs the Android 31 compile SDK. So that You are facing this issue. Here is Two Possible Solution use a specific version, use androidx.core:core-ktx:${version} instead of androidx.core:core-ktx:+ upgrade the compile SDK to Android 31
Solution 1: Change to androidx.core:core-ktx:1.0.6
Just open your app/build.gradle file and change this line.
androidx.core:core-ktx:+
replace with
androidx.core:core-ktx:1.6.0
Here is an Example.
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
googlePlayServicesAuthVersion = "16.0.1"
androidXCore = "1.6.0"
}
Solution 2: upgrade the compile SDK to Android 31
If you are using androidx.core:core-ktx:+ then this will find the latest version of androidx.core:core-ktx:+ and the latest one is 1.7.0 and the latest version needs the Android 31 compile SDK. So that You are facing this issue.
- Here is Two Possible Solution
- use a specific version, use
androidx.core:core-ktx:${version}
instead ofandroidx.core:core-ktx:+
- upgrade the compile SDK to Android 31
- use a specific version, use
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read