flutter create 기본값 AGP 9.0.1이 getDefaultProguardFile('proguard-android.txt')
지원을 제거해 flutter_inappwebview 빌드 실패 → androidx.core 1.17.0 최소요구(8.9.1)와
겹치는 8.9.1로 고정. APK 빌드 통과 확인.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
985 B
Plaintext
30 lines
985 B
Plaintext
pluginManagement {
|
|
val flutterSdkPath =
|
|
run {
|
|
val properties = java.util.Properties()
|
|
file("local.properties").inputStream().use { properties.load(it) }
|
|
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
|
flutterSdkPath
|
|
}
|
|
|
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
|
// AGP 9.x removed getDefaultProguardFile('proguard-android.txt') (used by
|
|
// flutter_inappwebview); AGP <8.9.1 is too old for androidx.core 1.17.0.
|
|
// → pin to 8.9.1 (the overlap) with Gradle 8.11.1.
|
|
id("com.android.application") version "8.9.1" apply false
|
|
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
|
|
}
|
|
|
|
include(":app")
|