To whom will be interested, I managed to solve thi...
# multiplatform
d
To whom will be interested, I managed to solve this problem by adding the
com.android.libray
plugin, allowing the
kotlin-multiplatform
plugin create the
presets.android
extension. You’ll need to create a
main
folder in your source root and add a valid AndroidManifest file, specifying the package name that will be used
👍 3
r
Note that you can change the name/location of that
main
folder
Copy code
android {

    …

    sourceSets {
        val main by getting {
            setRoot("src/androidMain")
        }
        val test by getting {
            setRoot("src/androidTest")
        }
    }

    …

}
(This is the android plugin block and not the kotlin MPP android target block)
👍 2
d
Thanks for the tip