Unable to import AppDatabase.Schema into KMM Android DatabaseDriverFactory

48 Views Asked by At

Just trying KMM with sqldelight 2.0.0. AppDatabase is correctly generated:

enter image description here

However I am unable to import it into my DatabaseDriverFactory: enter image description here`

What am I missing here? The AppDatabase is generated and is public - so, why can't I import it?

1

There are 1 best solutions below

0
me.at.coding On BEST ANSWER

It suddenly worked after restarting Android Studio which invoked a Gradle sync. Strange thing is that I can't remember I forgot a sync or got a warning about this. Anyways, now it works.