Home > database >  The binary version of its metadata is 1.8.0, expected version is 1.6.0
The binary version of its metadata is 1.8.0, expected version is 1.6.0

Time:01-29

I had this problem yesterday and 4 developers working together had this problem as well.

ext.kotlin_version = '1.6.0'

/Users/user/.gradle/caches/transforms-2/files-2.1/2dce81f10515217cc4bd96ea20deb014/jetified-kotlin-stdlib-common-1.8.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: 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.

and when i remove kotlin all related settings will not encounter this problem

I would like help to solve this problem by using kotlin v1.6.0

CodePudding user response:

First step: ensure that kotlin and kotlin-stdlib use the same version, especially 1.6.0

Second step: try to clean caches by the following console commands

rm -R ~/.gradle/caches
git clean -xdf -e local.properties -e .idea

CodePudding user response:

I had a solution for config this issue. Step 1 : Upgrade Kotlin v1.6.0 to v1.80

Tools > Kotlin > Configure Kotlin Project

Step 2: Upgrade Gradle plugin v7.0.2

Tools > AGP Upgrade assistant > Select (7.0.2) > Run Selected Step

  • Related