Repository navigation
Commit 1792345
committed
Silence obsolete-Java-8-target and native-access build warnings
Two of the three warnings from the last debug build are safe to fix
now:
- compileOptions/kotlinOptions targeted Java 8 bytecode, which javac
on JDK 20+ warns is obsolete and will eventually be removed. Bump
source/target/jvmTarget to Java 17, matching AGP 9's own JDK 17
minimum.
- Gradle's native-platform library trips JDK 24+'s restricted native
access warning on every build. Pass
--enable-native-access=ALL-UNNAMED via org.gradle.jvmargs to
acknowledge it, same as Gradle's own recommended workaround until
Gradle ships a module descriptor for it.
The third warning - "applies the Kotlin Gradle Plugin, which will
cause build failures in future versions of Flutter" - is left alone.
It's telling us to migrate to AGP 9's built-in Kotlin support, which
gradle.properties already deliberately opts out of: the Flutter
Gradle Plugin still throws an NPE under that mode
(flutter/flutter#191703, confirmed still open). Migrating now would
trade a future warning for a build that breaks today.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014gbNnPCT7nUxeWAQDiTzGR1 parent b7c2fce commit 1792345
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments