https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

dewildte

02/17/2019, 5:12 PM
Hey folks I am totally new to this stuff and am banging my head against an issue. in my
jvmMain
project I keep getting a unresolved reference to ktor's
HttpClient
class that exists in
commonMain
.
a

addamsson

02/17/2019, 5:14 PM
Did you add it as an
api
or an
implementation
dependency in your common project?
j

juancho

02/17/2019, 5:52 PM
As Adam said maybe you missed to add the dependency, here in the Ktor web page explain this: https://ktor.io/clients/http-client/multiplatform.html
d

dewildte

02/17/2019, 6:35 PM
implementation
a

addamsson

02/17/2019, 10:13 PM
That's the problem, try it with
api
d

dewildte

02/17/2019, 11:32 PM
I'll try a that and report back my findings
Thanks Adam
a

addamsson

02/17/2019, 11:35 PM
👍
d

dewildte

02/18/2019, 3:42 AM
@addamsson That did the trick!
I read up on api vs implementation too
a

addamsson

02/18/2019, 9:07 AM
Nice 1 👍
3 Views