Recently, I want to try the KTX expansion Library of Android core in the project:
implementation "androidx.core:core-ktx:1.7.0"
After adding dependency, we happily start to use various concise syntax sugars provided by KTX to fly happily~
Once running, wow, I reported an error:
Android resource linking failed /Users/xxx/.gradle/caches/transforms-2/files-
2.1/5d04bb4852dc27334fe36f129faf6500/res/values/values.xml:115:5-162:25:
AAPT: error: resource android:attr/lStar not found.
Solution 1:
If the dependency method is
AndroidX.Core: core-ktx:+
you need to replace it with a specific version
AndroidX.core:core-ktx:1.6.0
Solution 2:
If the version is 1.7.0
, the compilesdkversion
of the project is 31
, because my project is 30
, an error will be reported and changed to 1.6.0
version is good
Read More:
- error: resource android:attr/lStar not found [How to Solve]
- error: resource android:attr/lStar not found [Pefect Solution]
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- Flutter Package error: keyboard_visibility:verifyReleaseResources
- error: resource android:attr/lStar not found [How to Solve]
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- [Solved] Android resource linking failed, error: failed linking references.
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- Android Error: Android resource linking failed [How to Solve]
- error: resource android:attr/lStar not found? [How to Solve]
- [Solved] Android Error: import android.support.annotation.NonNull
- Aapt Remove Command error during crunch – archive is toast
- AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.
- Android Error: Found item attr/tabtextsize more than one time
- [Solved] Android DataBinding Error: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2 fragment Changes to Fragm
- [Solved] Execution failed for task ‘:app:checkDebugAarMetadata‘
- How to Solve creating bean with name ‘mappingjackson2httpmessageconverter’ error when elasticsearch advanced client starts‘
- [Maven] Pom.xml error: Cannot detect Web Project version.
- [Solved] Android9.0 App Install Android4.4 Error: InflateException-You must supply a layout_height attribute.
- org/sqlite/native/Mac/aarch64 Error [How to Solve]