inovex / kotlin-multiplatform-sample

Example code for Clean Multiplatform Architecture with Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unresolved database class

rhonyabdullah opened this issue · comments

commented

Seems this Database.Schema reference issue belongs to this.
I remove this line org.gradle.parallel=true and then rebuild the project the Generated class appear but become with another error on Schema.

Hi,

thanks for your interest in the project. Could you please specify the error message? Sometimes, the error message is just in Android Studio, but the gradle build works because IDE support is not yet complete for Kotlin Multiplatform.

I tested again with the following steps:

  • clone repository
  • use Android Studio 3.5 RC 3 (latest version)
  • open folder using "Open existing Android studio project..."
  • Build project

Afterwards, the following classes are generated in the build folder:

grafik

commented

I forget to disable configureondemand flag on my Global Properties gradle file, although local repository properties disabled it will overriding by global setting, so turning of it will resolve the error.
image

Your environment setting is correct also you put the link, so i think that unresolved reference is coming from my global setting.

Good to know, I wasn't aware of the global properties. Thanks for the explanation!