Код: Выделить всё
e: file:///C:/Users/xunre/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.10/d3028429e7151d7a7c1a0d63a4f60eac86a87b91/kotlin-stdlib-2.1.10.jar!/META-INF/kotlin-stdlib.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0. Код: Выделить всё
BUILD FAILED in 21m 7s
Running Gradle task 'assembleRelease'... 1268.7s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin BUILD FAILED in 21m 7s
Running Gradle task 'assembleRelease'... 1268.7s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ C:\flutte projects\unfinished\red_heart\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ C:\flutte projects\unfinished\red_heart\android\build.gradle │
│ ext.kotlin_version = '' │
└──────────────────────────────────────────────────────────────────────────────────────────
< /code>
My Android Android \ futures.gradle (уже последняя версия Kotlin "2.1.10"): < /p>
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "2.1.10" apply false
}
< /code>
У меня обновляются плагины с декларативными плагинами Gradle {} block. < /p>
Приложение работает нормально на эмуляторе и получило эту ошибку, когда я повернулся Создайте APK Подробнее здесь: https://stackoverflow.com/questions/794 ... to-upgrade
Мобильная версия