Skip to content

App crashes with offline mode on Android API 29, Android Studio 4.2 canary 1  #66

@mr3y-the-programmer

Description

@mr3y-the-programmer

at the end of codelab we finished implementing GithubRemoteMediator, but when running the app it crashes, saying in logcat "Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number." , However, RepoDatabase file is:

@Database(
        entities = [Repo::class, RemoteKeys::class],
        version = 1,
        exportSchema = false
)
abstract class RepoDatabase : RoomDatabase() {  

As you can see, I didn't increase the version or manipulate any other related database files I just walked through codelab but can't figure out why this error happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions