๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
studies/Back-end

[Kotlin] IntelliJ kotlinx.coroutines ๋ชจ๋“ˆ Import ์•ˆ๋จ ํ•ด๊ฒฐ

by Vada Kim 2023. 12. 10.
728x90
๋ฐ˜์‘ํ˜•

Unresolved reference: delay

 

์šฐ์„  ํ•ด๋‹น ํŒจํ‚ค์ง€์˜ ๊ณต์‹ ๊ฒฝ๋กœ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค.

https://github.com/Kotlin/kotlinx.coroutines#gradle

 

GitHub - Kotlin/kotlinx.coroutines: Library support for Kotlin coroutines

Library support for Kotlin coroutines . Contribute to Kotlin/kotlinx.coroutines development by creating an account on GitHub.

github.com

 

์•„๋ž˜๋Š” intelliJ์—์„œ ์ƒˆ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์‹œ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ๋นŒ๋“œ ์‹œ์Šคํ…œ ๋ณ„ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์ด๋‹ค.

 

Gradle

dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
}
repositories {
    mavenCentral() // ํ•ด๋‹น ์ฝ”๋“œ๋„ ์žˆ์–ด์•ผ ํ•œ๋‹ค๊ณ  ํ•œ๋‹ค.
}

 

Maven

<dependency>
    <groupId>org.jetbrains.kotlinx</groupId>
    <artifactId>kotlinx-coroutines-core</artifactId>
    <version>1.7.3</version>
</dependency>

 

IntelliJ

์ฐธ๊ณ  : https://stackoverflow.com/a/74189275

 

Integrate Kotlinx coroutines in intelliJ project

Iโ€˜m using intellij for a while now. There I work on a javaFx project, which is mainly written in java but I discovered Kotlin to be a nice alternative. Recently I read about coroutines in Kotlin ...

stackoverflow.com

 


 

javax.coroutines ํŒจํ‚ค์ง€ ๋ฒ„์ „ ์ฐธ๊ณ : https://github.com/Kotlin/kotlinx.coroutines/releases

์ ์šฉ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์ฝ”ํ‹€๋ฆฐ ๋ฒ„์ „์„ ์ตœ์‹ ์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ฑฐ๋‚˜ ํ˜ธํ™˜์„ฑ์„ ํ™•์ธํ•ด๋ณด์ž.

 

#์ธํ…”๋ฆฌ์ œ์ด

728x90
๋ฐ˜์‘ํ˜•