You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
When I just write as actual fun platformName(): String { return "Android " + android.os.Build.VERSION.BASE_OS }
in SharedCode/src/androidMain/kotlin/actual.kt I get: Unresolved reference: android
so it's mean that android platform module don't support android sdk :(
The text was updated successfully, but these errors were encountered:
Could you please update this example? You are making a big investment into KMP, but the introductory example is almost 1 year old and it doesn't show how to reference android code.
For those who end up here looking for a solution, this tutorial helped me
Here are the relevant parts of my build.gradle.kts
When I just write as
actual fun platformName(): String { return "Android " + android.os.Build.VERSION.BASE_OS }
in SharedCode/src/androidMain/kotlin/actual.kt I get: Unresolved reference: android
so it's mean that android platform module don't support android sdk :(
The text was updated successfully, but these errors were encountered: