0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Kotlinさんが「incompatible version of Kotlin」と叫びたがっているんだ

Posted at

Class 'kotlin/KotlinPackage' was compiled with an incompatible version of Kotlin.

Error:/Users/rirakuma/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/0.14.449/5b3fbac3cd9c019ed24e40fe69ea64fcf1d051a7/kotlin-stdlib-0.14.449.jar!/kotlin/KotlinPackage.class: (0, 0): Class 'kotlin/KotlinPackage' was compiled with an incompatible version of Kotlin. Its ABI version is 25, expected ABI version is 23

ある日Kotlinを立ち上げたら、突然こんなこと言われたよ。
ABI25は23と下位互換ありませんぜ!みたいな。

いや、別にバージョンを上げたいわけじゃないです。
古いバージョンのままです。

ライブラリのバージョンを指定してあげる。

build.gradle

dependencies#compile "org.jetbrains.kotlin:kotlin-stdlib:0.12.613"

buildscript/dependencies/classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:0.12.613"

gradle.properties

kotlin_version=0.12.613

そしてこいつら。

compile 'com.jakewharton:kotterknife:0.1.0-SNAPSHOT'
url 'https://oss.sonatype.org/content/repositories/snapshots/'

snapshotsさんが最新バージョンのkotlinさんを呼び寄せたっぽい。
消したら直りました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?