mkeeda / Runch

Random choosing restaurant app for nihonbashi lunch
0 stars 0 forks source link

【Warning】Runtime JAR files in the classpath should have the same version. #9

Open mkeeda opened 5 years ago

mkeeda commented 5 years ago

Warning 全文

Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Users/i001197/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.50/50ad05ea1c2595fb31b800e76db464d08d599af3/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3)
    /Users/i001197/.gradle/caches/transforms-2/files-2.1/b81de20d419aae9a0d9557c5f0c1e5d2/jetified-kotlin-reflect-1.2.71.jar (version 1.2)
    /Users/i001197/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.50/b529d1738c7e98bbfa36a4134039528f2ce78ebf/kotlin-stdlib-1.3.50.jar (version 1.3)
    /Users/i001197/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.50/3d9cd3e1bc7b92e95f43d45be3bfbcf38e36ab87/kotlin-stdlib-common-1.3.50.jar (version 1.3)   

原因

com.squareup.moshi:moshi-kotlin が kotlin 1.2.71 に依存しているらしく、gradle によりプロジェクトで指定している 1.3.50 に矯正されているため。

dependency tree を見るとはっきりわかる。

+--- com.squareup.moshi:moshi-kotlin:1.8.0
|    +--- com.squareup.moshi:moshi:1.8.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.71 -> 1.3.50 (*)
|    \--- org.jetbrains.kotlin:kotlin-reflect:1.2.71
|         \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.71 -> 1.3.50 (*)

解決策

moshi-kotlin の kotlin バージョンが 1.3.50 になるのを待つしかなさそう。 もしくは PR を出すか。

mkeeda commented 5 years ago

moshi のプロジェクトのどこで kotlin のバージョン指定をしているのかわからん kotlin-reflect 自体は 1.3.50 がリリースされている