I've build a KMM project in Android Studio but the ios app seems to not see the classes from the shared module. Initially it worked perfectly but now that I modified some classes in the shared module, the error appears.
My project structure looks this way:
As you can see there are some compilation errors in the Platform class but the android app is working fine. The error says "The feature "multi platform projects" is experimental and should be enabled explicitly".
The ios app looks like this:
Later Edit:
So apparently I found that I encounter this errors when I add this dependencies in shared.build.gradle in the common source set:
val commonMain by getting {
dependencies {
// implementation("io.ktor:ktor-client-core:$ktorVersion")
// implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
// implementation("io.ktor:ktor-client-json:$ktorVersion")
// implementation("io.ktor:ktor-client-serialization-jvm:$ktorVersion")
}
}
I need these dependencies to make requests to my ktor server.
Update: So the problem was that I added some libraries in the common set and those libraries did not have multiplatform support.

