A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution

前端 未结 30 1847
南旧
南旧 2020-12-12 20:01

All of sudden I start getting this error, and I am not getting idea why if anyone just let me know where this error is, will be enough helpful. As much I am able to get is t

30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 20:46

    I had same problem with Room and i was not using viewBinding.
    I Fixed it with using exportSchema to false in my database class.

    @Database(entities = [ModelClass::class], version = 1, exportSchema = false)
    abstract class ModelDatabase: RoomDatabase() {}
    

    Remember: exportScehma could be vary according to your use case, generally it stays false so i put it to false.

提交回复
热议问题