Ankit Dubey
06/03/2021, 9:53 AMval ktorHttpClient = HttpClient(OkHttp) {
engine {
}
I need OkHttp in my HttpClient.
This is in shared/commonMain.
But commonMain not able to access OkHttp.
If I add OkHttp in commonMain then getting build error.
implementation ("io.ktor:ktor-client-okhttp:$ktorVersion")
Failed building KotlinMPPGradleModel
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find ktor-client-okhttp-1.6.0-samplessources.jar (io.ktor:ktor-client-okhttp:1.6.0).
John O'Reilly
06/03/2021, 9:57 AMJohn O'Reilly
06/03/2021, 9:58 AMAnkit Dubey
06/03/2021, 9:58 AMAnkit Dubey
06/03/2021, 10:04 AMJohn O'Reilly
06/03/2021, 10:06 AMAnkit Dubey
06/03/2021, 10:13 AM