当前位置:网站首页>使用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
边栏推荐
猜你喜欢

Count sort

Ue4/ue5 illusory engine, material part (III), material optimization at different distances

Chinese notes of unit particle system particle effect

3dsmax scanning function point connection drawing connection line

Bucket sort

UE 虚幻引擎,项目结构

【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research

Redis has four methods for checking big keys, which are necessary for optimization

【Leetcode】1352. 最后 K 个数的乘积

Data is stored in the form of table
随机推荐
2022/7/1學習總結
Collapse of adjacent vertical outer margins
Quick sort summary
Detailed explanation of the ranking of the best universities
Unity check whether the two objects have obstacles by ray
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
A complete attack chain
Stm32cubemx (8): RTC and RTC wake-up interrupt
Lua GBK and UTF8 turn to each other
2022/7/2做题总结
PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
AutoCAD - Center zoom
The next key of win generates the timestamp file of the current day
Recherche de mots pour leetcode (solution rétrospective)
【Leetcode】1352. 最后 K 个数的乘积
AutoCAD - scaling
Bubble sort summary
cocos_ Lua loads the file generated by bmfont fnt
win下一键生成当日的时间戳文件