Vivek Modi
04/15/2022, 1:59 PMactual class Platform actual constructor() {
actual val versionCode = AppConfig.versionCode
}
interface AppConfig {
val versionCode: String
}
But I am getting errorGrégory Lureau
04/15/2022, 2:08 PMAppConfig
refers to the interface, not an implementation. So you're trying to access the value of an interface (and you should retrieve value from an instance of a class).Vivek Modi
04/15/2022, 2:09 PMVivek Modi
04/15/2022, 2:12 PMGrégory Lureau
04/15/2022, 2:13 PMVivek Modi
04/15/2022, 2:14 PMJames Black
04/16/2022, 6:24 AM