当前位置:网站首页>使用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
边栏推荐
- Unity parallax infinite scrolling background
- Lua determines whether the current time is the time of the day
- 小程序直播+电商,想做新零售电商就用它吧!
- Sixth note
- UE 虚幻引擎,项目结构
- AutoCAD - command repetition, undo and redo
- Simple modal box
- Lua GBK and UTF8 turn to each other
- 54. Spiral matrix & 59 Spiral matrix II ●●
- Unity writes timetables (without UI)
猜你喜欢
随机推荐
Lua determines whether the current time is the time of the day
MD5 bypass
Vs2015 secret key
[转]: OSGI规范 深入浅出
Simple HelloWorld color change
Development error notes
嵌入式数据库开发编程(零)
PMP考生,请查收7月PMP考试注意事项
xftp7与xshell7下载(官网)
Unity shot tracking object
LeetCode之單詞搜索(回溯法求解)
cocos_ Lua loads the file generated by bmfont fnt
Generate filled text and pictures
Research and investment forecast report of adamantane industry in China (2022 Edition)
C # perspective following
用 Jmeter 工具做个小型压力测试
Database under unity
Reverse one-way linked list of interview questions
Research on the value of background repeat of background tiling
Use of snippets in vscode (code template)







![[转]: OSGI规范 深入浅出](/img/54/d73a8d3e375dfe430c2eca39617b9c.png)

