. Advertisement .
..3..
. Advertisement .
..4..
Android is one Linux-based operating system designed for mobile devices with touch screens, 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 ran your code, you got the following error: “AAPT: error: resource android:attr/lStar not found in Android“. We will present workable alternative options to computer programmers due to our research as soon as possible. Let’s get started on fixing this error.
When Does The Error “AAPT: error: resource android:attr/lStar not found in Android’” Occur?
Today you encountered the following error when running the release test while executing your 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.
How Is The Error ”AAPT: error: resource android:attr/lStar not found in Android” Going To Be Resolved?
Method 1: Upgrade the SDK compile to Android 31
If you are using androidx.core:core-ktx:+, this will find the most recent version of androidx.core:core-ktx:+, which is 1.7.0 and requires the Android 31 compile SDK. As a result, you are confronted with this problem.
Here are two potential solutions.
First, let’s use a specific version, use androidx.core:core-ktx:${version} instead of androidx.core:core-ktx:+
Second, you need to upgrade the SDK compile to Android 31.
Method 2: Change to androidx.core:core-ktx:1.0.6
You can edit this line in your app/build.gradle file.
“androidx.core:core-ktx:+”
Now you replace it with this code.
“androidx.core:core-ktx:1.6.0”
As an example, consider the following.
“ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
googlePlayServicesAuthVersion = "16.0.1"
androidXCore = "1.6.0"
}”
Method 3: Upgrade your package with yarn
Besides the solutions mentioned above, there is another way to fix your error ”AAPT: error: resource android:attr/lStar not found in Android”. In this case, the issue is brought on by @react-native-community/netinfo. Therefore, if you want to fix your error, you simply need to upgrade your package with yarn by running the below command. So let’s try this:
yarn add @react-native-community/netinfo
This method is very simple, isn’t it? However, it works flawlessly and it will give you amazing result. Your error will be completely disappear and your program wil run well without any errors. Let’s do it to get your desired result.
Conclusion
The solutions presented above are recommendations for those still perplexed by the error “AttributeError ‘EmptyConstraint’ object has no attribute ‘allows'”.
If you need support or have a lot of ideas, we have a large community where everyone is usually willing to help. Finally, we would like to thank you, individuals, who have made it this far and wish you a pleasant day of interesting code solutions.
Read more
Leave a comment