flutter error: Module was compiled with an incompatible version of Kotlin. The binary version of its

Опубликовано: 05 Октябрь 2024
на канале: IhsanUllah
199
9

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

.gradle/caches/transforms-3/431ce31617111116ed092b20fb775fda/transformed/jetified-kotlin-stdlib-1.9.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.9.0, expected version is 1.7.1.

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 3m 38s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐
│ Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases...., then │
│ update E:\vsprojects\islamic_app\android\build.gradle: │
│ ext.kotlin_version = 'latest-version' │
└────────────────────────────────────────────────────────────────────────────────────────────┘