Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified

If using java or react-native then paste this inside app/build.gradle dependencies { // … implementation ‘androidx.work:work-runtime:2.7.1’ } If using Kotlin then use this dependencies { // … implementation ‘androidx.work:work-runtime-ktx:2.7.0’ } and if anybody still facing the crash issue for android 12 then make sure you add following in AndroidMenifest.xml <activity … android:exported=”true” // in most … Read more

Quality selector for ExoPlayer 2

Everything you’d like to achieve is viewable in the ExoPlayer2 demo app. More specifically the PlayerActivity class. You can also check out this good article on the topic. The core points you’ll want to look into are around track selection (via the TrackSelector) as well as the TrackSelectionHelper. I’ll include the important code samples below … Read more