当前位置:网站首页>使用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
- Cocos2dx screen adaptation
- Establish cloth effect in 10 seconds
- 用 Jmeter 工具做个小型压力测试
- 【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
- Listview is added and deleted at the index
- Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
- Count sort
- mysql審計日志歸檔
- Time format conversion
猜你喜欢

UE fantasy engine, project structure
![[转]: OSGI规范 深入浅出](/img/54/d73a8d3e375dfe430c2eca39617b9c.png)
[转]: OSGI规范 深入浅出

Ue4/ue5 illusory engine, material chapter, texture, compression and memory compression and memory

django连接数据库报错,这是什么原因

Generate filled text and pictures

Download and use of font icons

Applet Live + e - commerce, si vous voulez être un nouveau e - commerce de détail, utilisez - le!

Reverse one-way linked list of interview questions

2022年上半年国家教师资格证考试

Collapse of adjacent vertical outer margins
随机推荐
UE 虚幻引擎,项目结构
C # perspective following
中国金刚烷行业研究与投资预测报告(2022版)
Learning notes of "hands on learning in depth"
Stm32cubemx (8): RTC and RTC wake-up interrupt
Collapse of adjacent vertical outer margins
BUUCTF MISC
【Leetcode】1352. 最后 K 个数的乘积
PR first time
Establish cloth effect in 10 seconds
Vs2015 secret key
AutoCAD - set layer
C iterator
Simple HelloWorld color change
Development error notes
Transport connection management of TCP
Optimization scheme of win10 virtual machine cluster
LeetCode之單詞搜索(回溯法求解)
UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
Unity card flipping effect