Hello Everyone, I am building an sdk using kotlin ...
# multiplatform
r
Hello Everyone, I am building an sdk using kotlin multiplaform, which will be consumed by both android/ios. I am facing an issue in native android: I have defined below dependencies in kmp sdk:
Copy code
implementation("io.ktor:ktor-client-android:2.2.4")
implementation("io.ktor:ktor-client-logging:2.2.4")
implementation("io.ktor:ktor-client-content-negotiation:2.2.4")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.2.4")
but when in native app, if I am not providing these dependencies, app is crashing. when I add these dependencies it works fine. I am using the kmp sdk in native android app via maven dependency.
can anyone suggest please?