当前位置:网站首页>使用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
边栏推荐
- Download and use of font icons
- Pdf to DWG in CAD
- Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
- xftp7与xshell7下载(官网)
- cocos2dx_ Lua particle system
- 中国金刚烷行业研究与投资预测报告(2022版)
- Research and investment forecast report of adamantane industry in China (2022 Edition)
- win10虚拟机集群优化方案
- Panel panel of UI
- Unity sends messages and blocks indecent words
猜你喜欢
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
Merge sort
Reverse one-way linked list of interview questions
UE 虚幻引擎,项目结构
[paper notes] multi goal reinforcement learning: challenging robotics environments and request for research
Grail layout and double wing layout
Unity3d learning notes
AutoCAD - set layer
Data is stored in the form of table
2022/7/2 question summary
随机推荐
Unity find the coordinates of a point on the circle
Applet Live + e - commerce, si vous voulez être un nouveau e - commerce de détail, utilisez - le!
Research and investment forecast report of adamantane industry in China (2022 Edition)
Research on the value of background repeat of background tiling
Cocos2dx Lua registers the touch event and detects whether the click coordinates are within the specified area
Simple HelloWorld color change
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
MD5 bypass
AutoCAD - graphic input and output
2022/7/1學習總結
AutoCAD - Zoom previous
嵌入式数据库开发编程(六)——C API
Es module and commonjs learning notes -- ESM and CJS used in nodejs
PMP考生,请查收7月PMP考试注意事项
Listview pull-down loading function
AutoCAD - full screen display
Listview is added and deleted at the index
China as resin Market Research and investment forecast report (2022 Edition)
Unity card flipping effect
Chinese notes of unit particle system particle effect