当在鸿蒙中创建数据库或者数据表的时候,出现以下错误:
Cannot resolve symbol ‘Database’
Cannot resolve symbol ‘Entity’
是因为
没有在build.gradle中添加配置(如果使用注解处理器的模块为“com.huawei.ohos.hap”模块,则需要在模块的“build.gradle”文件的“ohos”节点中添加以下配置)
compileOptions { annotationEnabled true }
当在鸿蒙中创建数据库或者数据表的时候,出现以下错误:
Cannot resolve symbol ‘Database’
Cannot resolve symbol ‘Entity’
是因为
没有在build.gradle中添加配置(如果使用注解处理器的模块为“com.huawei.ohos.hap”模块,则需要在模块的“build.gradle”文件的“ohos”节点中添加以下配置)
compileOptions { annotationEnabled true }