Fixed
Status Update
Comments
ch...@google.com <ch...@google.com> #2
Comment has been deleted.
jg...@google.com <jg...@google.com> #3
Fixed on the layoutlib side. The preview in the example provided now works assuming resizeMode
and useController
are not used (limitations of the ExoPlayer library)
an...@google.com <an...@google.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Narwhal | 2025.1.1 Canary 2
- Android Gradle Plugin 8.11.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Trying to use
ExoPlayer
in Compose Previews currently results in a Render Error, because classes fromandroid.media
(e.g.MediaCryptoException
) are not loaded in layoutlib.The attached project has a sample repro (
AudioPlayerViewPreview
).