Top "Android-room" questions

For questions related to Android Room Persistence Library (which is a part of Android Architecture Components)

Room cannot find implementation

I have a problem with testing a Room database: when I run the test, I get this exception: java.lang.…

android implementation android-room
LiveData is not updating its value after first call

I have been beating my head against the wall and I cannot understand why this is happening. I am working …

android viewmodel dagger-2 android-room dagger
Android Room database transactions

With the new Room Database in Android, I have a requirement where there are two sequential operations that needs to …

android transactions android-database android-room
How to annotate Column as NOT NULL using Android Room Persistence Library

My data class looks like this @Entity(tableName = "items") data class Item( @ColumnInfo(name = "name") var name: String = "", @ColumnInfo(name = "…

android sqlite kotlin android-room
Room - Select query with IN condition?

Is it possible to use SQLite's IN condition with Room? I'm trying to select a list of items from my …

android sqlite select android-room sql-in
Androidx modules, android:attr/ttcIndex & android:attr/fontVariationSettings not found

I'm migrating all my support/appcompat libraries to androidx. After all updates I can't build my project because of this …

android android-gradle-plugin android-support-library android-room androidx
Room Using Date field

I am using date converter class to convert my date object. However, I still encounter an error saying. error: Cannot …

android android-room android-database android-date
How can I represent a many to many relation with Android Room?

How can I represent a many to many relation with Room? e.g. I have "Guest" and "Reservation". Reservation can …

android kotlin android-room android-architecture-components
Android: Room: no encryption and security?

For now I'am using OrmLite over SQLite with SQLCipher. Is it really no way to protect Room database from being …

android android-room
Android Room: How to model relationships?

I have just started working with Room and although everything seems to be pretty intuitive I currently don't really understand …

android database sqlite orm android-room