当前位置:网站首页>Warning using room database: schema export directory is not provided to the annotation processor so we cannot export
Warning using room database: schema export directory is not provided to the annotation processor so we cannot export
2022-07-05 05:19:00 【Novice Xiaowang】
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 MyRoomDatabase extends RoomDatabase {
Not provided to annotation processor framework Export directory , Therefore, the schema cannot be exported . You can provide room.schemaLocation Annotate processor parameters or exportSchema Set to false
resolvent
1、 stay build gradle Add ( recommend )
javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } }
2.exportSchema = false
边栏推荐
猜你喜欢
Yolov5 adds attention mechanism
[depth first search] 695 Maximum area of the island
2022/7/2做题总结
Learning notes of "hands on learning in depth"
JVM call not used once in ten years
C language Essay 1
[转]MySQL操作实战(三):表联结
Unity check whether the two objects have obstacles by ray
Stm32cubemx (8): RTC and RTC wake-up interrupt
Bucket sort
随机推荐
Haut OJ 1357: lunch question (I) -- high precision multiplication
Collapse of adjacent vertical outer margins
[转]:Apache Felix Framework配置属性
Solon Logging 插件的添加器级别控制和日志器的级别控制
Time format conversion
嵌入式数据库开发编程(零)
xftp7与xshell7下载(官网)
Simple HelloWorld color change
A three-dimensional button
Research on the value of background repeat of background tiling
Fragment addition failed error lookup
National teacher qualification examination in the first half of 2022
Animation
质量体系建设之路的分分合合
Use of snippets in vscode (code template)
Double pointer Foundation
Simple modal box
Solon Auth 认证框架使用演示(更简单的认证框架)
Es module and commonjs learning notes -- ESM and CJS used in nodejs
Solon Logging 插件的添加器级别控制和日志器的级别控制