I am just configuring the initial project of KMP i...
# multiplatform
s
I am just configuring the initial project of KMP in VS code, but the current Kotlin extension keeps complaining the expect/actual function in commonMain and iosMain has Overload resolution ambiguity: public actual fun getPlatform(): Platform defined in... public actual fun getPlatform(): Platform defined in... public expect fun getPlatform(): Platform defined in... While the project has no bug in Android Studio and Gradle build. Is there any way for VS code to not debug this?
s
I think you'll be shooting yourself in the foot trying to get Kotlin Multiplatform going in VS Code. Is there a reason to not use Android Studio?
b
I second Anton. I would use intellij or android studio for this. Its already complicated enough without adding additional complexity with VSCode which may not understand the syntax.
t
Android Studio at least makes this implementation for the placeholder classes and methods more automated and will detect the errors for when it's missing and offer creating the boilerplate for you. Highly recommended to move out of VS code for the actual code and use it for more pseudocode and notes.