Es ist nicht möglich, InstantiateImpl () zu beheben. AppDatabase {< /p>
Code: Select all
val dbFilePath = NSHomeDirectory() + "/my_room.db"
return Room.databaseBuilder(
name = dbFilePath,
factory = { AppDatabase::class.instantiateImpl() } // Error occurs here
)
.setDriver(BundledSQLiteDriver()) // Required for iOS
.build()