nilTheDev
06/27/2021, 7:12 AMcoroutines
. Unfortunately, I haven't been able to use the library kotlinx
in idea
for two hours. I have downloaded the library through Maven
.
1. Tried invalidating caches.
2. Rebuilt project.
3. Tried using it in a fresh project.
4. Even intellij
is suggesting kotlinx
in auto-completion.
5. Still it says unresolved reference
I have tried most of the solutions on the web. But nothing worked. 🙄crummy
06/27/2021, 7:57 AMnilTheDev
06/27/2021, 8:07 AMcrummy
06/27/2021, 8:08 AMJimmy
06/27/2021, 8:54 AMmodule-info.java
? IntelliJ should complain, but it's easily missed.
• Are you using maven/gradle for dependencies? Is your project set up to use the classpath from them? It should be done automatically if you create the project as maven/gradle, but I'm not sure if IntelliJ does it otherwise. This also applies to running the app using the internal runner instead of maven/gradle.
Basic things, but so easy to miss.nilTheDev
06/27/2021, 10:05 AMgradle/maven
stuff and don't understand these properly.nilTheDev
06/27/2021, 10:07 AMStackoverflow
. I've explained all the steps that I am following with snapshots. You can check it out here,
https://stackoverflow.com/questions/68150001/unresolved-reference-kotlinx-in-intellijidea-even-after-adding-the-libraryJimmy
06/27/2021, 10:25 AMkotlinx-coroutines-core-jvm
or, redo the project using Gradle (IMO the better system over Maven) instead of IntelliJ.
Then it should be enough to just add
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
crummy
06/27/2021, 10:50 AMnilTheDev
06/27/2021, 2:25 PMkotlinx-coroutines-core-jvm
for now. And it works like a charm.gildor
06/28/2021, 4:37 AM