Android ROOM does not save all fields [closed]
Closed 2 days ago.
can’t find Room.databaseBuilder()
I’m trying to build an app with android using room as a database. While initializing the database I seem to have a problem using the databaseBuilder() method of room. I always get the error: can’t find symbol Room.databaseBuilder().
From my perspective it seems like the databaseBuilder doesn’t exist. I already tried to import androidx.room into my project but it still can’t find the method.
Is there a reason why it won’t find method databaseBuilder in class room or are there any alternatives?
removeObserver() does not remove the observer (android, java)
I have a viewModel and an observer that works perfectly good. Actually, too good because the observer refuses to be removed even when I ask nicely.