This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1304635-kotlin-native-and-multiplatform/lessons/12
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1304635-kotlin-native-and-multiplatform/lessons/12
Followed all steps and they are working perfectly but I’m unable to get the import for UIDevice
, and adding platform.UIKit.UIDevice
doesn’t seem to work. Any solutions?
Hi @parithi, thanks for the question. It’s possible things have changed in more recent versions of Kotlin/Native. Check out the Platform Libraries page in the official docs for more info:
https://kotlinlang.org/docs/reference/native/platform_libs.html
When we update this course, we’ll adress any updates that have occurred in Kotlin/Native. In the meantime, what error message are you seeing?
I had the same issue. Seems like Android studio cannot locate platform
. Tried to use different version but no luck still …
Same here. The state of KMP has changed since this course was released so you are basically stuck at this point in the course.
@macsimus Can you please help with this when you get a chance? Thank you - much appreciated! :]