Issue
I am a beginner in Kotlin App Development. The following error is occurred when I tried to build the app -
e: C:/Users/Lenovo/.gradle/caches/transforms-2/files-2.1/32f0bb3e96b47cf79ece6482359b6ad2/jetified-kotlin-stdlib-jdk7-1.5.0.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16
Is it about updating the module? Then how to update it?
Solution
Happened to me when updating from Kotlin 1.4.30
to 1.5.0
. Seems to be some sort of Gradle
caching issue. I was able to resolve it by updating Gradle
from 6.7.1
to 6.9
(or any other version).
Just go to gradle-wrapper.properties
and change this line from
distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
to
distributionUrl=https://services.gradle.org/distributions/gradle-6.9-all.zip
Answered By - Sir Codesalot