Hello. I created Compose Multiplatform project usi...
# multiplatform
i
Hello. I created Compose Multiplatform project using Wizard and then I adde one multiplatform module (Ui) into ComposeApp commonMain dependencies. As a result, androidMain folder can use this dependency, but commonMain and iosMain don't see the dependency. Where can be the problem?
a
I guess you need add same line in androidMain.dependencies?
i
Gorden, I don't have a problem with androidMain.
a
I create a module in my project and it works..... how you create the module
i
I added a module with simple class:
settings.gradle - include(":base")
That is all
a
are you create these files all by hand? my new module structure is this
seem like your module less commonMain folder
i
It's true. Should we have all folders (androidMain, commonMain, iosMain) for each multiplatform modules?
a
I'm not sure, recommand use android studio new module option to create, maybe you need open this feature in settings
image.png
i
Gorden, thank you. I will check your proposals and return back.
a
No problem
i
@alt 99, thank you for your help. You are right! It's necessary to have these folders in each multiplatform module and also Android Studio setting is important.
👍 1