Adding dependencies
In your application's build.gradle
, add the dependencies on AndroidX and Room.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
}
}
...
dependencies {
...
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation "androidx.room:room-runtime:2.4.1"
}