-
Notifications
You must be signed in to change notification settings - Fork 518
App crash on startup in A14+ with casting #2178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this may be solved by simply updating the cast dependency, but this cannot be done on the app-side. |
This should be possible on the app side. If you're using gradle, you can use a dependency constraint when building your app: https://docs.gradle.org/current/userguide/dependency_constraints.html |
I can reproduce the issue using the steps described. It is indeed fixed by bumping the cast dependency to I'll send a change for this version bump internally, but as described above you should be able to solve this on the app side without waiting for a library update. |
This resolves an app crash on devices with Google Play Services installed but disabled due to `FLAG_MUTABLE` on a `PendingIntent`. Issue: #2178 #cherrypick PiperOrigin-RevId: 730885329
Version
Media3 pre-release (alpha, beta or RC not in this list)
More version details
This issue affects both 1.6.0-alpha03 and 1.5.1 (latest alpha and stable as of writing).
Also tested on 4c3ac818 (latest commit 5 hours ago as of this writing)
Devices that reproduce the issue
Any android device with android version 14 and above with google play services installed, but play services are disabled.
I am able to reproduce the issue on the stock android studio emulator with play services running sdk 35.
The app using the cast library needs to target sdk 34+.
Devices that do not reproduce the issue
Reproducible in the demo app?
Yes
Reproduction steps
Example:
Expected result
The lack of play services should gracefully fail like in older android versions.
In the demo app the app should not crash and instead just show "Failed to get Cast Context. Try updating Google Play Services and restart the app" as it does on sdk < 34 with play services disabled.
Actual result
App crashes with the following stack trace:
Media
Not applicable.
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: