I just wanted to taste Kotlin coroutines. Unfortunately, I haven't been able to use the library kotlinx
in IntelliJ
. I have downloaded the library through Maven
.
IntelliJ
is suggesting kotlinx
in auto-completion.I have tried most of the solutions on the web. But nothing worked.
Here are the steps that I am exactly doing.
Made a new project.
kotlinx
is underlined since the library has not been added.
In project structure > modules > dependencies > add > library > maven
Searched for the kotlinx
library.
Downloaded the library.
Applied the settings.
kotlinx
library is now visible in the External Libraries
section.
Even the auto-completion is now suggesting kotlinx
.
Still, nothing changes. The result is the same.
I have found the answer in the Kotlin
slack channel. And to solve this particular issue add org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0
instead of org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0
.
However, it is generally a good idea to learn a build system like Gradle
or Maven
and using those in the project. It makes life a lot easier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With