Trying to add Room in a KMP empty project, and fol...
# multiplatform
l
Trying to add Room in a KMP empty project, and following the steps here (https://developer.android.com/kotlin/multiplatform/room) The line in the
iosMain
Copy code
factory =  { AppDatabase::class.instantiateImpl() }
Gives me an error as it unresolved
Copy code
Unresolved reference: instantiateImpl
a
Maybe this thread can help you
l
Tried both the flag & the manual import, but the import also remains unresolved
b
also you can check the related bug ticket on the room side. they have fixed the issue, next release of Room will contain the fix.
This workaround should fix your issue until next release shipped.