Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    C:/Users/user/.gradle/caches/transforms-3/.../transformed/jetified-kotlin-stdlib-jdk8-1.5.20.jar (version 1.5)
    C:/Users/user/.gradle/caches/transforms-3/.../transformed/jetified-kotlin-stdlib-jdk7-1.5.20.jar (version 1.5)
    C:/Users/user/.gradle/caches/transforms-3/.../transformed/jetified-kotlin-reflect-1.4.10.jar (version 1.4)
    C:/Users/user/.gradle/caches/transforms-3/.../transformed/jetified-kotlin-stdlib-1.5.20.jar (version 1.5)
    C:/Users/user/.gradle/caches/transforms-3/.../transformed/jetified-kotlin-stdlib-common-1.5.20.jar (version 1.5)

 

koin์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด setupํ•  ๋•Œ ๋งž์ง€ ์•Š๋Š” ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜์—ฌ ์ƒ๊ธฐ๋Š” ์˜ค๋ฅ˜์˜€๋‹ค.

 

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

์ด์ „์—๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•  ๋•Œ ์œ„์˜ dependency๊ฐ€ ์ž๋™์œผ๋กœ ์ถ”๊ฐ€๋˜์–ด ์žˆ์—ˆ๋Š”๋ฐ 

ํ˜„์žฌ๋Š” ์ถ”๊ฐ€๋˜์–ด์žˆ์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ตœ์‹ ๋ฒ„์ „์˜ dependencies๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ์–ด์•ผ ํ•˜๋Š” ๊ฒƒ์œผ๋กœ ๋ณด์ธ๋‹ค.

 

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

์•„๋ž˜์˜ ์ฝ”๋“œ๋ฅผ app:build.gradle์— ์ถ”๊ฐ€ํ•œ๋‹ค.

// Koin
    def koin_version= "3.1.2"
    implementation "io.insert-koin:koin-android:$koin_version"
    implementation "io.insert-koin:koin-android-compat:$koin_version"
    implementation "io.insert-koin:koin-androidx-workmanager:$koin_version"
    implementation "io.insert-koin:koin-androidx-compose:$koin_version"

 

๋ฒ„์ „์€ ๊ณ„์† ๋ฐ”๋€” ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ๊ณต์‹๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๋‹ค.

2021.08.26 - [๐Ÿ’ป๊ฐœ๋ฐœ/android studio] - Koin Setup : ์ฝ”์ธ ์…‹์—…ํ•˜๊ธฐ

 

Koin Setup : ์ฝ”์ธ ์…‹์—…ํ•˜๊ธฐ

https://insert-koin.io/docs/setup/v3/ Koin v3 | Koin Setup Koin for your project insert-koin.io https://github.com/InsertKoinIO/koin GitHub - InsertKoinIO/koin: Koin - a pragmatic lightweight depend..

ye333.tistory.com

 

728x90

BELATED ARTICLES

more