Question
When using a third-party library, an error is reported during compilation
C:\Users\Administrator\.gradle\caches\transforms-2\files
2.1\b29f469d834fe6ac53c0c0e264e4ef98\core-1.7.0\res\values\values.xml
:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
reason
Compatibility problems have caused the project to be compiled. However, the core-1.7.0 version is used in the third party library and core-1.6.0 is used in the project.
Solution:
Add the following code above dependencies{} in build.gradle
configurations.all {
resolutionStrategy {
force 'androidx.core:core:1.6.0'
}
}
dependencies {
}
Read More:
- [Solved] AAPT: error: resource android:attr/lStar not found
- error: resource android:attr/lStar not found [Pefect Solution]
- error: resource android:attr/lStar not found [How to Solve]
- error: resource android:attr/lStar not found [How to Solve]
- error: resource android:attr/lStar not found? [How to Solve]
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- Android Package Error: AAPT: error: IDAT: incorrect data check. AAPT: error: file failed to compile.
- [Solved] Android Studio Error: AAPT: error: file failed to compile
- Android Error: Found item attr/tabtextsize more than one time
- Android Error: Android resource linking failed [How to Solve]
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found
- AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] Android resource linking failed, error: failed linking references.
- [Solved] :app:processDebugResources Android resource linking failed Android resource linking failed
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- How to Solve Error: java.io.IOException: Resource [classpath:shiro.ini] could not be found.
- Vue Browser Error: Failed to load resource: the server responded with a status of 404 (Not Found)
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- Flutter Error: dump failed because resource AndroidManifest.xml not found [How to Solve]