ext.kotlin_version = '<latest-version> 해결 방법
//Android/Settings.gradle 안으로 들어가서,
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.0" apply false
// id "org.jetbrains.kotlin.android" version "1.7.10" apply false -> 주석
id "org.jetbrains.kotlin.android" version "1.9.22" apply false //입력해주기
}
include ":app"
plugins 안에, version “1.7.10” apply false 부분 주석 처리하고,
아래 내용을 추가해 주기
id "org.jetbrains.kotlin.android" version "1.9.22" apply false //입력해주기
Share article