스터디/에러 일기

[Android/Kotlin] version 오류

혜유우 2023. 1. 18. 02:41

room을 사용한 데이터베이스를 사용하기 위해서 라이브러리를 추가시켜준 후에 sync를 하는 도중에

다음과 같은 버전 오류가 발생했다.

 

 

 

Note that updating a library or application's compileSdkVersion (which       allows newer APIs to be used) can be done separately from updating       targetSdkVersion (which opts the app in to new runtime behavior) and       minSdkVersion (which determines which devices the app can be installed       on).

 

 

compilesdk 버전이 맞지 않아서 발생한 오류이므로

compileSdk를 33으로 변경한 후에 sync를 다시 하시면 해결된다!