I am trying to setup android target for multiplatform project (androidMain) and get the following er...
o
I am trying to setup android target for multiplatform project (androidMain) and get the following error:
Copy code
Could not generate a decorated class for type KotlinAndroidTarget
Is there any guide how to add such sourceSet?
p
o
Are those multiplatform or just android?
p
Multiplatform. The non-experimental don't share compose-ui. The experimental ones do share compose-ui code
o
Thanks! Will try that
p
No problem 👍🏻
s
This is a classloader isolation issue! Please ensure that you tell Gradle to load Kotlin Gradle Plugin and the Android Gradle Plugin together. My preferred approach for this is to load the plugins on the root project
Copy code
plugins {
    kotlin("multiplatform") apply false
    id("<http://com.android.xyz|com.android.xyz>") apply false
}
323 Views