Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.[BUG] #77

Closed
prashantspandey opened this issue Apr 25, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@prashantspandey
Copy link

I created a flutter java app and imported this project.
But can't run the project because it shows:
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.

Now when I am adding ext.kotlin_version = '1.6.0'.
Still the same error persists. I don't understand because it's not a kotlin project but a java one. Then also it's shows this error.

How to solve it?

@prashantspandey prashantspandey added the bug Something isn't working label Apr 25, 2022
@Meherdeep
Copy link
Contributor

This looks like some Gradle caching issue. Can you try updating the Gradle version?

@prashantspandey
Copy link
Author

`buildscript {
repositories {
ext.kotlin_version = '1.6.10'
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
    classpath 'com.android.tools.build:gradle:7.0.4'
}

}

allprojects {
repositories {
google()
mavenCentral()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}`

above is my build.gradle file
gradel is already 7.0.4 (classpath 'com.android.tools.build:gradle:7.0.4')
what else can i do?

@Meherdeep
Copy link
Contributor

@prashantspandey Please use the latest version of the UIKit that should solve the issue. http://pub.dev/packages/agora_uikit

if you're still facing the issue feel free to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants