androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
Apache License 2.0
1.34k stars 315 forks source link

Unable to import exoplayer UI string resource #1467

Closed pawaom closed 1 week ago

pawaom commented 1 week ago

Unable to import exoplayer UI string resource

I was working with the exoplayer main demo in media 3

here

The TrackSelectionDialog contains few string resource which should be included after we include the UI library however they are still not included the following two images explain it better

Screenshot 2024-06-18 145038 Screenshot 2024-06-18 145106

I think they refer to this file

here and others

even after including implementation 'androidx.media3:media3-ui:1.X.X' we are unable to get this resources

how can we include them

tonihei commented 1 week ago

These strings moved to the demo app as of https://github.com/androidx/media/commit/ebe74daaecc53a61a374676428405260e1a46584. I guess your project is using a local checkout of the demo app, but depends on a release version of the UI module? To fix this issue you either need to check out the demo app at the release tag you are depending on, or build the UI module from the main branch as well.

pawaom commented 1 week ago

I have used val media3_version = "1.3.1" even then it causes the issue