kotlinkotlin-multiplatformsqldelight

Unable to import AppDatabase.Schema into KMM Android DatabaseDriverFactory


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?


Solution

  • 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.