Skip to content

Commit fb53f65

Browse files
committed
flet_example/android: bump KGP 2.1.0 → 2.3.21 (match screen_brightness_android stdlib)
screen_brightness_android 2.1.5 ships compiled against Kotlin 2.3.21 stdlib. KGP 2.1 couldn't read the metadata: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.3.0, expected version is 2.1.0. Bumping KGP to 2.3.21 matches the transitive stdlib version.
1 parent 9441342 commit fb53f65

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/serious_python/example/flet_example/android/settings.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ plugins {
2121
// AGP 8.9.1+ required by androidx.core 1.18.0 (transitive via Flet);
2222
// AGP 8.9 requires Gradle 8.11+ (see gradle-wrapper.properties).
2323
id "com.android.application" version "8.9.1" apply false
24-
// KGP 2.0+ required by screen_brightness_android 2.1.5's use of the
25-
// `kotlin.compilerOptions { ... }` DSL.
26-
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
24+
// KGP 2.3.x required: screen_brightness_android 2.1.5 ships with a
25+
// Kotlin 2.3.21 stdlib whose metadata format (binary version 2.3.0)
26+
// can't be read by KGP < 2.3.
27+
id "org.jetbrains.kotlin.android" version "2.3.21" apply false
2728
}
2829

2930
include ":app"

0 commit comments

Comments
 (0)