android, upgraded all components to the latest versions and it builds successfully!!

This commit is contained in:
me committed 2026-09-13 18:36:16 -07:00
1 parent 952c0449d5
commit d6c0c79f8a
3 files changed
+8 -7

No files matched your search

+5 -5
View File
@@ -1,15 +1,15 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("com.android.application")
// This will need removed in Gradle/AGP 9.
// This supposedly needs removed in Gradle/AGP 9 but works fine.
id("org.jetbrains.kotlin.android") // id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
android {
namespace = "com.hyperling.sunset_alarm"
compileSdk = flutter.compileSdkVersion
@@ -21,7 +21,7 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
}
// This will need removed in Gradle/AGP 9.
// This supposedly needs removed in Gradle/AGP 9, but then uses 21 and fails to build.
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
@@ -49,7 +49,7 @@ android {
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
}
flutter {