how to remove room data in desktop environment? ``...
# room
c
how to remove room data in desktop environment?
Copy code
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. Expected identity hash: 38767ca95e25ff4f114395416eb5f824, found: b6766d3311ce100dfdedbb4695613e5b
creation code, useless even when i deleted the db file.
Copy code
fun getDatabaseBuilder(): RoomDatabase.Builder<AppDatabase> {
    val dbFile = File(System.getProperty("java.io.tmpdir"), "room.db")
    dbFile.delete()
    return Room.databaseBuilder<AppDatabase>(
        name = dbFile.absolutePath,
    )
}

fun getRoomDatabase(
    builder: RoomDatabase.Builder<AppDatabase>
): AppDatabase {
    return builder
//        .addMigrations(MIGRATIONS)
//        .fallbackToDestructiveMigrationOnDowngrade(true)
        .setDriver(BundledSQLiteDriver())
        .setQueryCoroutineContext(<http://Dispatchers.IO|Dispatchers.IO>)
        .build()
}
what the hell it is , even when i removed all tmp file and android temporary folders the problem remain!
s
Is your build configured to output Room schemas?
c
It is no of use, I want to remove the schema info that room wants to use.
not how to migrate the room.
the room schema is under development and not a release one.
how insane it is even when I remove the project the schema still recorded!
after removed all config files, it finally repassed the test.😑
🙌 1
But I still don't know the files/directories that cause the problem and how to remove them only.
😑