Skip to content

Android Video Player plugin produces warning #178908

@istornz

Description

@istornz

Steps to reproduce

  • Upgrade to latest Flutter version (currently 3.38.2)
  • Be sure to use latest video player android version (currently 2.8.19)
  • Create a sample project.
  • Build an app bundle for Android.

Expected results

Should not produce any warning.

Actual results

[...]
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 24100 bytes (98.5% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "Font-Awesome-7-Free-Regular-400.otf" was tree-shaken, reducing it from 87332 to 1836 bytes (97.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/Users/dimitri/.pub-cache/hosted/pub.dev/video_player_android-2.8.19/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerEventCallbacks.java:22: warning: onListen(Object,PigeonEventSink<PlatformVideoEvent>) in <anonymous io.flutter.plugins.videoplayer.VideoPlayerEventCallbacks$1> overrides onListen(Object,PigeonEventSink<PlatformVideoEvent>) in VideoEventsStreamHandler; overridden method is a bridge method
          public void onListen(
                      ^
/Users/dimitri/.pub-cache/hosted/pub.dev/video_player_android-2.8.19/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerEventCallbacks.java:28: warning: onCancel(Object) in <anonymous io.flutter.plugins.videoplayer.VideoPlayerEventCallbacks$1> overrides onCancel(Object) in VideoEventsStreamHandler; overridden method is a bridge method
          public void onCancel(Object arguments) {
                      ^
2 warnings
Running Gradle task 'bundleRelease'...                            762,5s
✓ Built build/app/outputs/bundle/release/app-release.aab (76.7MB)

Code sample

Code sample

Just create a sample Flutter project from scratch

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.2, on macOS 26.1 25B78 darwin-arm64, locale fr-FR)
[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 26.1.1)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
     HIDDEN_DATA
[✓] Network resources

! Doctor found issues in 1 category.

Metadata

Metadata

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.found in release: 3.38Found to occur in 3.38found in release: 3.39Found to occur in 3.39has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions