Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to make a build of my RN app but Build fails with the following error error: resource android:attr/lStar not found in React-Native. 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 error: resource android:attr/lStar not found Error Occurs ?
Today I am just trying to make a build of my RN app but Build fails with the following error.
Execution failed for task ':app:processDevelopmentDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
.../app/build/intermediates/incremental/mergeDevelopmentDebugResources/merged.dir/values/values.xml:2682: AAPT: error: resource android:attr/lStar not found.
How To Solve error: resource android:attr/lStar not found Error?
- How To Solve error: resource android:attr/lStar not found Error?
To Solve error: resource android:attr/lStar not found Error Seems like the problem is with react-native-community/netinfo package just Update this package and your error will be solved. with yarn use this command. yarn add @react-native-community/netinfo with npm Package npm update @react-native-community/netinfo. If Solution 1 not worked then just add androidXCore = “1.6.0” in ext in android/build.gradle. Open Your android/build.gradle. And add androidXCore = “1.6.0” in ext like this.
- error: resource android:attr/lStar not found
To Solve error: resource android:attr/lStar not found Error Seems like the problem is with react-native-community/netinfo package just Update this package and your error will be solved. with yarn use this command. yarn add @react-native-community/netinfo with npm Package npm update @react-native-community/netinfo. If Solution 1 not worked then just add androidXCore = “1.6.0” in ext in android/build.gradle. Open Your android/build.gradle. And add androidXCore = “1.6.0” in ext like this.
Solution 1: Update react-native-community/netinfo Package
Seems like the problem is with react-native-community/netinfo package just Update this package and your error will be solved.
with yarn use this command.
yarn add @react-native-community/netinfo
with npm Package
npm update @react-native-community/netinfo
Solution 2: Just add androidXCore = “1.6.0” in ext in android/build.gradle
If Solution 1 not worked then just add androidXCore = “1.6.0” in ext in android/build.gradle.
Open Your android/build.gradle. And add androidXCore = “1.6.0” in ext like this.
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
googlePlayServicesAuthVersion = "16.0.1"
androidXCore = "1.6.0"
}
Summery
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
Related Solution
[Solved] AAPT: error: resource android:attr/lStar not found in Android / Flutter