ID为“org.jetbrains.kotlin.android”的插件的版本号

问题描述 投票:0回答:1

我更新了 Flutter 并收到此错误,我该怎么办?我换了Kotlin版本,还是不行,请问如何解决这个问题?

尝试了大部分版本,问题依然存在

pluginManagement {
def flutterSdkPath = {
    def properties = new Properties()
    file("local.properties").withInputStream { properties.load(it) }
    def flutterSdkPath = properties.getProperty("flutter.sdk")
    assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
    return flutterSdkPath
}()

includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

repositories {
    google()
    mavenCentral()
    gradlePluginPortal()
}
}

plugins {
   id "dev.flutter.flutter-plugin-loader" version "1.0.0"
  id "com.android.application" version "7.3.1" apply false
 // START: FlutterFire Configuration
  id "com.google.gms.google-services" version "4.4.2" apply false
  // END: FlutterFire Configuration
  id "org.jetbrains.kotlin.android" version "2.0.20" apply false
  }

include ":app"

这些图片说明了问题。

enter image description here

enter image description here enter image description here

flutter dart
1个回答
0
投票

面临同样的问题。我从 id“org.jetbrains.kotlin.android”版本“1.9.22”更改为 id“org.jetbrains.kotlin.android”版本“2.0.20”,这是最新的 kotlin 更新,但我仍然面临这个错误

© www.soinside.com 2019 - 2024. All rights reserved.