I’ve started to get an error starting today saying:
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
This error arises after/during I build the .apk binary of my app. I tried the solution explained in Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15 but did not succeed. My build.gradle
files does not contain such line to add/edit the Kotlin version information. I use Flutter project build with VS Code. Both the build.gradle
files (found in android/app/build.gradle
and android/build.gradle
) does not contain such provision.
Here is the flutter doctor
output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on Ubuntu 22.04.4 LTS 6.5.0-45-generic, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.92.0)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!