I'm trying to share code between Android and iOS with Kotlin Multiplatform. The sharing part works perfectly but I have some issues to import in a common file the androidApp package. I would like to use the res folder located in androidApp in the shared class. This is my tree directory1:
Thanks!
Usually you don’t have to import specific platform package to the shared part.
The direction is quite the opposite.
Use the shared part in the native ones.
If you need to share resources in an Android manner I suggest you to have a look here: