Помогите решить ошибку:
C:\Users\administrator\AndroidStudioProjects\MyApplication\app\build\tmp\kapt3\stubs\debug\com\example\myapplication\database\room\
AppRoomDao.java:16: error: To use Coroutine features, you must add
ktx
artifact from Room as a dependency.
androidx.room:room-ktx:<version>
public abstract java.lang.Object insert(@org.jetbrains.annotations.NotNull()
^C:\Users\administrator\AndroidStudioProjects\MyApplication\app\build\tmp\kapt3\stubs\debug\com\example\myapplication\database\room\
AppRoomDao.java:23: error: To use Coroutine features, you must add
ktx
artifact from Room as a dependency.
androidx.room:room-ktx:<version>
public abstract java.lang.Object delete(@org.jetbrains.annotations.NotNull()
^C:\Users\administrator\AndroidStudioProjects\MyApplication\app\build\tmp\kapt3\stubs\debug\com\example\myapplication\database\room\
AppRoomDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide
room.schemaLocation
annotation processor argument OR set exportSchema to false.
public abstract class AppRoomDatabase extends androidx.room.RoomDatabase {
^