android room database1 Android Room DB 간단한 메모DB 만들어보기 + 주의할점 1. 의존성 추가 (최신 버전으로 업데이트) dependencies { def room_version = "2.4.1" implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" // optional - Kotlin Extensions and Coroutines support for Room implementation "androidx.room:room-ktx:$room_version" } 2.entity추가 import androidx.room.Entity import androidx.room.PrimaryKey @Entity data class Memo( @Primary.. 2024. 1. 5. 이전 1 다음