当前位置:网站首页>使用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
边栏推荐
- cocos2dx_ Lua particle system
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- Judge the position of the monster in the role under unity3d
- django连接数据库报错,这是什么原因
- C4D simple cloth (version above R21)
- A three-dimensional button
- 2021-10-29
- 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
- Count sort
猜你喜欢

3dsmax scanning function point connection drawing connection line

Recherche de mots pour leetcode (solution rétrospective)

Simple modal box

Generate filled text and pictures

Use of snippets in vscode (code template)

Chinese notes of unit particle system particle effect

BUUCTF MISC

UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存

小程序直播+电商,想做新零售电商就用它吧!

【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
随机推荐
Es module and commonjs learning notes -- ESM and CJS used in nodejs
《动手学深度学习》学习笔记
Unity find the coordinates of a point on the circle
Unity card flipping effect
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
Quick sort summary
Bucket sort
How to choose a panoramic camera that suits you?
Unity get component
54. Spiral matrix & 59 Spiral matrix II ●●
MySQL audit log archiving
2022 / 7 / 1 Résumé de l'étude
win下一键生成当日的时间戳文件
Time format conversion
The difference between heap and stack
Redis has four methods for checking big keys, which are necessary for optimization
mysql審計日志歸檔
Collapse of adjacent vertical outer margins
Insert sort
2022/7/1学习总结