is it normal that intellij can't find the package ...
# ktor
c
is it normal that intellij can't find the package io? using kotlin 1.3.20, intellij 2018.1.3, ktor 1.1.2, gradle 4.10.1 (it compiles, but intellij is showing errors everywhere... this is NOT wrong dsl highlight color as pointed out here https://youtrack.jetbrains.com/issue/IDEA-204487, I am getting error eg on object returned by ktor get, intellij can't detect type etc)
e
Hi @coletz, what about gradle build? If gradle is OK, could you file an youtrack issue?
The reproducer would be nice 🙂
c
Gradle build is ok, will try to remove everything else from my project and file an issue :)
🙂 1
🙏 1
So probably I'm using wrong dependencies:
Copy code
// Common
io.ktor:ktor-client
// Android
io.ktor:ktor-client-android
// iOS
io.ktor:ktor-client-ios
n
Same issue here. And it also doesn’t compile. The task
:compileKotlinMetadata
fails on me.
e
Could you try using ‘ktor-client-core’ in common instead?
n
This worked. But what’s strange is that HttpClient is still red in code, while the
import io.ktor.client.HttpClient
is recognized and is not red.
Strange, isn’t it?