Unsupported metadata version. check that your kotlin version is >= 1.0: java.lang.illegalstateexception: unsupported metadata version. check that your kotlin version is >= 1.0

The error message “java.lang.illegalstateexception: unsupported metadata version. check that your kotlin version is >= 1.0” indicates that there is a mismatch between the version of Kotlin you are using and the required version for the metadata. To resolve this issue, you need to update your Kotlin version to a version that is equal to or greater than 1.0.

Here is an example of how to update Kotlin version using different build systems:

  • Gradle:

                    buildscript {
                        ext.kotlin_version = '1.0.5'
                        ...
                    }
                    ...
                
  • Maven:

                    <properties>
                        <kotlin.version>1.0.5</kotlin.version>
                    </properties>
                    ...
                
  • Ant:

                    <property name="kotlin.version" value="1.0.5" />
                    ...
                

Once you have updated the Kotlin version in your build system configuration, rebuild your project to ensure that the changes take effect. This should resolve the “unsupported metadata version” error.

Read more

Leave a comment