-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Open
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
What package does this bug report belong to?
interactive_media_ads
What target platforms are you seeing this bug on?
Android
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
[Paste file content here]
Steps to reproduce
getting it from crashlytics
Expected results
should not throw this exception
Actual results
io.flutter.plugins.firebase.crashlytics.FlutterError - PlatformException(IllegalStateException, java.lang.IllegalStateException, Cause: null, Stacktrace: java.lang.IllegalStateException at android.media.MediaPlayer.getDuration(Native Method) at p9.z.c(SourceFile:215) at L6.Q0.d(SourceFile:24) at C9.c.run(S
Code sample
Code sample
[Paste your code here]
Screenshots or Videos
Logs
Logs
MediaPlayer.getDuration
io.flutter.plugins.firebase.crashlytics.FlutterError - PlatformException(IllegalStateException, java.lang.IllegalStateException, Cause: null, Stacktrace: java.lang.IllegalStateException at android.media.MediaPlayer.getDuration(Native Method) at p9.z.c(SourceFile:215) at L6.Q0.d(SourceFile:24) at C9.c.run(S
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(IllegalStateException, java.lang.IllegalStateException, Cause: null, Stacktrace: java.lang.IllegalStateException
at android.media.MediaPlayer.getDuration(Native Method)
at p9.z.c(SourceFile:215)
at L6.Q0.d(SourceFile:24)
at C9.c.run(SourceFile:62)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8780)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
, null)
at MediaPlayer.getDuration(interactive_media_ads.g.dart:4688)
at AndroidAdDisplayContainer._setUpVideoView.<fn>(android_ad_display_container.dart:235)
Flutter Doctor output
Doctor output
[!] Flutter (Channel stable, 3.35.1, on Microsoft Windows [Version 10.0.26100.4946], locale en-US)
! Warning: `flutter` on your path resolves to C:\Users\Ab-Aziz\fvm\versions\3.35.1\bin\flutter, which is not inside your current Flutter SDK checkout at
C:\Users\Ab-Aziz\fvm\default. Consider adding C:\Users\Ab-Aziz\fvm\default\bin to the front of your path.
! Warning: `dart` on your path resolves to C:\Users\Ab-Aziz\fvm\versions\3.35.1\bin\dart, which is not inside your current Flutter SDK checkout at
C:\Users\Ab-Aziz\fvm\default. Consider adding C:\Users\Ab-Aziz\fvm\default\bin to the front of your path.
[√] Windows Version (11 Pro 64-bit, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc1)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.3)
[√] VS Code (version 1.99.3)
[√] Connected device (4 available)
[√] Network resources
Metadata
Metadata
Assignees
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds