ラベル Kotlin の投稿を表示しています。 すべての投稿を表示
ラベル Kotlin の投稿を表示しています。 すべての投稿を表示

2021-10-24

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is xxxx, expected version is yyyyy"

表題のようなエラーが出た場合、下記のように対応。

(1)gradle-wraper-propertiesの中身でgradleのバージョンを変更

  • distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip

(2)build.gradleでKotlinのバージョンを変更
  • ext.kotlin_version = '1.4.32'
なぜこれでいいのかは不明。Gradleのキャッシュがクリアされる??Stack overflowから得たネタです。

Reference