Room Persistence Library run time exception when calling Rooms inMemoryBuilder method

前端 未结 8 935
不思量自难忘°
不思量自难忘° 2020-12-09 16:13

When following the tutorial for setting up the Room persistence library I run in to this error when testing on an Android device.

java.lang.RuntimeException: cannot

8条回答
  •  被撕碎了的回忆
    2020-12-09 16:21

    Rule of thumb when using Kotlin:

    Replace your annotationProcessor dependencies with kapt. Also, include apply plugin: 'kotlin-kapt' in your app's build.gradle.

提交回复
热议问题