Skip to content

Session demo crashes in Android 6 #2970

@nift4

Description

@nift4

Version

Media3 main branch

More version details

0b20baa

Devices that reproduce the issue

API 23 emulator

Devices that do not reproduce the issue

N/A

Reproducible in the demo app?

Yes

Reproduction steps

  1. Open the session-demo app

Expected result

It works

Actual result

2025-12-27 13:25:01.830  4306-4306  AndroidRuntime          androidx.media3.demo.session    E  FATAL EXCEPTION: main
                                                                                               Process: androidx.media3.demo.session, PID: 4306
                                                                                               java.lang.NoClassDefFoundError: androidx.media3.cast.MediaRouteButtonFactory$$ExternalSyntheticLambda0
                                                                                               	at androidx.media3.cast.MediaRouteButtonFactory.setUpMediaRouteButton(MediaRouteButtonFactory.java:174)
                                                                                               	at androidx.media3.cast.MediaRouteButtonFactory.setUpMediaRouteButton(MediaRouteButtonFactory.java:147)
                                                                                               	at androidx.media3.demo.session.MainActivity.onCreateOptionsMenu(MainActivity.kt:106)
                                                                                               	at android.app.Activity.onCreatePanelMenu(Activity.java:2846)
                                                                                               	at androidx.activity.ComponentActivity.onCreatePanelMenu(ComponentActivity.java:520)
                                                                                               	at androidx.fragment.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:287)
                                                                                               	at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:95)
                                                                                               	at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:3429)
                                                                                               	at leakcanary.FixedWindowCallback.onCreatePanelMenu(FixedWindowCallback.java:63)
                                                                                               	at androidx.appcompat.app.AppCompatDelegateImpl.preparePanel(AppCompatDelegateImpl.java:2027)
                                                                                               	at androidx.appcompat.app.AppCompatDelegateImpl.doInvalidatePanelMenu(AppCompatDelegateImpl.java:2313)
                                                                                               	at androidx.appcompat.app.AppCompatDelegateImpl$2.run(AppCompatDelegateImpl.java:281)
                                                                                               	at android.os.Handler.handleCallback(Handler.java:739)
                                                                                               	at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                               	at android.os.Looper.loop(Looper.java:148)
                                                                                               	at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                                               	at java.lang.reflect.Method.invoke(Native Method)
                                                                                               	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                                               	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Media

can't even get to the selection screen :)

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions