# android

Mikołaj Karwowski

01/29/2020, 1:03 PM
Anybody knows why I can't use a declared dependency when creating a x-platform Kotlin library? Even though I add it to commonMain, it's visible only in androidMain :/
Copy code
sourceSets["commonMain"].dependencies {
        implementation ("")
Java-WebSocket seems to me just a java library, so shouldn't it be available in common library part?
Ok, I think I got that one wrong way round. It's a java library, so it works on JVM which makes it not compatible with ios nor Kotlin/Native Correct?

Matsushita Kohei

01/30/2020, 12:40 PM
Kotlin native is able to use only Kotlin library. If you want to develop websocket , should use Ktor.