使用Jetpack组件的Room时,遇到的一些问题以及解决方案

一.Cannot find getter for field 

我定义的变量为:private String mWord;但是get方法是这样的:getmWord()

解决方法就是改成getMWord

二.警告: 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.

使用Jetpack组件的Room时,遇到的一些问题以及解决方案如图设置一下就行

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-04-02
  • 2021-05-10
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案