Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Room persistent library reset version to 1

Is there any ways to reset room library version to 1. I tried uninstall the app on my phone. It is not working.

like image 946
Linh Hoàng Avatar asked Oct 01 '17 20:10

Linh Hoàng


People also ask

Is room database deprecated?

This method is deprecated. Called by Room when it is initialized. Convenience method to query the database with arguments. Wrapper for SupportSQLiteDatabase. query .

What is Roomdatabase?

Room is a persistence library that provides an abstraction layer over the SQLite database to allow a more robust database. With the help of room, we can easily create the database and perform CRUD operations very easily.

What is room persistence library?

The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. In particular, Room provides the following benefits: Compile-time verification of SQL queries.


1 Answers

Downgrading versions using Room only works if you completly remove the app.

You can either do that via adb (adb uninstall your.app.package) which removes your databases aswell, or you delete the data/cache in your app-overview using your device.

like image 100
Emanuel S Avatar answered Sep 28 '22 06:09

Emanuel S