当前位置:网站首页>使用Room数据库报警告: Schema export directory is not provided to the annotation processor so we cannot expor
使用Room数据库报警告: Schema export directory is not provided to the annotation processor so we cannot expor
2022-07-05 05:13:00 【菜鸟xiaowang】
警告: 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 {
未向批注处理器提供架构导出目录,因此无法导出架构。你可以提供room.schemaLocation注释处理器参数或将exportSchema设置为false
解决方法
1、在build gradle中添加(推荐)
javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } }
2.exportSchema = false
边栏推荐
猜你喜欢
Research on the value of background repeat of background tiling
stm32Cubemx(8):RTC和RTC唤醒中断
小程序直播+电商,想做新零售电商就用它吧!
How to choose a panoramic camera that suits you?
Count sort
Redis has four methods for checking big keys, which are necessary for optimization
Reverse one-way linked list of interview questions
AutoCAD - Center zoom
JVM call not used once in ten years
Redis 排查大 key 的4种方法,优化必备
随机推荐
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
[转]: OSGI规范 深入浅出
Cocos2dx Lua registers the touch event and detects whether the click coordinates are within the specified area
Do a small pressure test with JMeter tool
小程序直播+电商,想做新零售电商就用它吧!
Detailed explanation of the ranking of the best universities
669. 修剪二叉搜索树 ●●
cocos2dx_ Lua particle system
Redis has four methods for checking big keys, which are necessary for optimization
The difference between heap and stack
BUUCTF MISC
Transport connection management of TCP
win下一键生成当日的时间戳文件
2022 / 7 / 1 Résumé de l'étude
AutoCAD - set layer
Cocos2dx screen adaptation
Generate filled text and pictures
Unity sends messages and blocks indecent words
Listview is added and deleted at the index