본문 바로가기

안드로이드/Error2

[안드로이드 ERROR] Default interface methods are only supported starting with Android N 안녕하세요. 프로나인입니다. 안드로이드 라이브러리를 추가하거나 gradle파일의 버전을 바꾸거나 하면 아래와 같이 오류가 발생할 수 있습니다. [오류 메세지] Default interface methods are only supported starting with Android N (--min-api 24): androidx.lifecycle.Lifecycle androidx.lifecycle.LifecycleRegistryOwner.getLifecycle() 저같은 경우는 androidx.lifecycle 관련한 오류로 min api 값을 24로 바꾸라고 안내를 해줍니다. 또 다른 오류에서는 min api 값을 26버전으로 바꾸라고 안내를 해주고 있습니다. 해결 방법 (2가지) 1. minSdkVers.. 2022. 1. 9.
[안드로이드 ERROR] AAPT: error: resource android:attr/lStar not found. 안녕하세요. 프로나인입니다. 안드로이드 빌드를 하니 아래와 같이 오류가 발생할 때가 있습니다. 오류 메세지 - AAPT: error: resource android:attr/lStar not found. 분명 잘 빌드하고 실행도 진행했었는데 왜 안되지?? , 혹은 처음 프로젝트 실행하고 발생할 수도 있습니다. 이 오류에 대해 해결 방법을 정리 해보고자 합니다 ! 해결 방법 1. build.gradle[app] --> dependencies 에 있는 implementation 'androidx.core:core:1.7.0' 으로 올려줍니다. (즉, 최근 업데이트 된 버전으로 올려주는 겁니다!) 2. compileSdkVersion 과 targetSdkVersion 을 최신화를 시켜줍니다. 지금 저는 31 .. 2022. 1. 7.