# multiplatform

Hossein Amini

06/15/2021, 11:11 AM
Hello, in android projects I always create a Java/Kotlin module for the domain layer and I add it to the data layer(which is an Android module) . Now I want to do this process for a KMM project but when I create a Java/Kotlin module and add it to the shared module (commonMain) the iOS app won’t be built. Please guid me. Thanks

Odife K

06/15/2021, 8:18 PM
You want to create a multiplatform library instead with android and iOS targets. In there you can write your kotlin only codes and you will be able to use it in the shared module