Fixed
Status Update
Comments
da...@google.com <da...@google.com> #2
I think it is because we've deprecated the accidently public mDatabase. Should be fine.
Can you share the full warning so we can verify?
Can you share the full warning so we can verify?
ap...@google.com <ap...@google.com> #3
That's the entire message:
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
el...@google.com <el...@google.com>
na...@google.com <na...@google.com> #4
I see it is a "Note" not a warning.
Description
Component used:
androidx.room:room-compiler
Version used:
2.5.0-alpha02
,2.5.0-alpha03
Devices/Android versions reproduced on:
Samsung Galaxy S21 / Android 12
I've updated the Room version from
2.4.3
to2.5.0-alpha03
and after the last migration, the JSON generated will once in a while fail withAfter checking out the differences between the last schema file 73.json and the new one, 74.json, apart from the changes I've wanted to make, there's this block:
inside the only ftsVersion block I have. Whatever I write in the migration script doesn't matter, I always get the same issue. If I delete the .json, an identical one regenerates, which works fine the first time but then crashes the second time. What I've found is that if I delete the
SHADOW_TABLE_NAME_SUFFIXES
andshadowTableNames$delegate
blocks from 74.json, I don't get the issue anymore.I've attached a demo app in which I've reproduced the issue, however, I must mention that initially, it worked fine up to the 3rd database version. How I've managed to reproduce the issue on the demo app is as follows: