Status Update
Comments
ya...@gmail.com <ya...@gmail.com> #2
My builder DB:
private fun getDatabaseBuilder(file: File): RoomDatabase.Builder<MyDatabase> { val dbFile = File(file, "myDB.db") return Room.databaseBuilder<MyDatabase>( name = dbFile.absolutePath ).setDriver(BundledSQLiteDriver()) }
internal fun getRoomDatabase(file: File): MyDatabase { val migrationConfig = Migration() return getDatabaseBuilder(file) .addMigrations(*migrationConfig.getAllMigration()) .setJournalMode(RoomDatabase.JournalMode.WRITE_AHEAD_LOGGING) .fallbackToDestructiveMigrationOnDowngrade(true) .setQueryCoroutineContext(Dispatchers.IO) .build() }
Description
I use Room for the JVM, it does not throw an error if I use room 2.7.0-alpha12 and sqlite-bundled (2.5.0-alpha13, 2.5.0-alpha12) , but after I upgraded to 2.7.0-alpha13 and 2.7.0-beta01, when launching the application on the JVM, an error appears in the Runtime "Caused by: java.lang.ClassNotFoundException: androidx.sqlite.SQLiteDriver".
KSP: 2.1.10-1.0.29 Kotlin: 2.1.10
room { schemaDirectory("$projectDir/schemas") }