当前位置:网站首页>使用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
边栏推荐
- 3dsmax snaps to frozen objects
- [leetcode] integer inversion [7]
- Reverse one-way linked list of interview questions
- Unity enables mobile phone vibration
- 3dsmax2018 common operations and some shortcut keys of editable polygons
- Embedded database development programming (zero)
- Data is stored in the form of table
- Unity connects to the database
- Unity3d learning notes
- Embedded database development programming (VI) -- C API
猜你喜欢
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Ue4/ue5 illusory engine, material part (III), material optimization at different distances
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
C4D simple cloth (version above R21)
UE4/UE5 虚幻引擎,材质篇(三),不同距离的材质优化
UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
Research on the value of background repeat of background tiling
AutoCAD - scaling
Unity ugui source code graphic
小程序直播+電商,想做新零售電商就用它吧!
随机推荐
Sixth note
Embedded database development programming (zero)
cocos2dx_ Lua card flip
嵌入式数据库开发编程(五)——DQL
Magnifying glass effect
嵌入式数据库开发编程(零)
[转]: OSGI规范 深入浅出
2022 / 7 / 1 Résumé de l'étude
GameObject class and transform class of unity
Research and investment forecast report of adamantane industry in China (2022 Edition)
3dsmax2018 common operations and some shortcut keys of editable polygons
Ue4/ue5 illusory engine, material part (III), material optimization at different distances
Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
Unity connects to the database
小程序直播+电商,想做新零售电商就用它吧!
2022年上半年国家教师资格证考试
Out and ref functions of unity
MD5 bypass
Ue4/ue5 illusory engine, material chapter, texture, compression and memory compression and memory
Reverse one-way linked list of interview questions