Fix build failure when running the Android example.
Updating Android Studio to the latest version (Ladybug 2024.2.1) will cause compilation issues since the minimum Gradle version that supports Java 21 (which is the new bundled JDK with Android Studio) is at least 8.5 or newer, updating Gradle requires updating Android Gradle Plugin and some related build configuration on Android, some plugins do require targeting at least Java 17, also building the app with Java 21 will give you warnings since support for Java 8 has been deprecated and will be removed in future releases. Flutter plugins is currently updating to target Java 11.
video_player causes build failure if warnings are found, updating the minimum version of video_player and video_player_android to fix this issue. Reverted the change, instead developers are required to run flutter pub upgrade
Description
Fix build failure when running the Android example.
Updating Android Studio to the latest version (Ladybug 2024.2.1) will cause compilation issues since the minimum Gradle version that supports Java 21 (which is the new bundled JDK with Android Studio) is at least 8.5 or newer, updating Gradle requires updating Android Gradle Plugin and some related build configuration on Android, some plugins do require targeting at least Java 17, also building the app with Java 21 will give you warnings since support for Java 8 has been deprecated and will be removed in future releases. Flutter plugins is currently updating to target Java 11.
Reverted the change, instead developers are required to runvideo_player
causes build failure if warnings are found, updating the minimum version ofvideo_player
andvideo_player_android
to fix this issue.flutter pub upgrade
Related Issues
Type of Change