androidx.appcompat lStar Not Found 오류
2021. 12. 27. 10:33ㆍAndroid/Exception handling
안드로이드가 com.android.support 지원을 중단함에 따라 androidx.appcompat로 바꿨는데, 바꾸니 이번에는 웬 이상한 리소스를 못찾겠다고 한다.
작성 당일 기준 의존성은 아래와 같다.
// androidx dependency
implementation("androidx.appcompat:appcompat:1.4.0")
implementation("androidx.core:core-ktx:1.7.0")
오류 메시지는 아래와 같이 발생된다.
AAPT: error: resource android:attr/lStar not found.
해결을 하기 위해선 Compile, Target SDK 버전을 바꾸거나, 다른 작업을 해줘야한다.
나같은경우는 compileSdkVersion을 높여 해결했다.
기존에는 28버전을 사용하다가 31버전으로 높였더니 해결됐다.
android {
compileSdkVersion(31)
buildToolsVersion("29.0.2")
.
.
.
defaultConfig {
.
.
.
minSdkVersion(28)
targetSdkVersion(31)
.
.
.
}
.
.
.
}
그 외의 해결 방안으로는 androidx.core의 버전을 낮추거나, 아래 명령어를 통해 androidx의 사용 library를 변경해 해결할 수 있다고 한다.
cordova plugin add cordova.plugins.diagnostic --variable ANDROIDX_VERSION=1.0.0
관련해서 해보진 않아서, 찾은 링크를 게시해놓도록 하겠다.
- cordova
https://stackoverflow.com/questions/69033022/message-error-resource-androidattr-lstar-not-found
- androidx.core downgrade & compile sdk 버전 변경
https://exerror.com/solved-aapt-error-resource-androidattr-lstar-not-found-in-android/
'Android > Exception handling' 카테고리의 다른 글
Android Undertow 2.0.42.Final 서버 작동시 오류 (0) | 2022.01.27 |
---|---|
Kotlin Android Build시 Rejecting re-init? (0) | 2021.12.27 |
Android Java 1.8 Gradle Build Error (0) | 2021.10.26 |