Hello there!
Im integrating the player (bitmovin-player-react-native) in my react-native app.
My situation is the following:
Im currently using react-native-video for the player inside the app. but now I want to start using bitmovin-player-react-native in SOME PARTS of the app. so the requirement is that both players can co-live.
In iOS there is no problem, its already integrated and working.
but in Android im having the issue of duplicated classes when trying to build the app.
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.android.exoplayer2.AbstractConcatenatedTimeline found in modules jetified-exoplayer-core-2.18.1-runtime (com.google.android.exoplayer:exoplayer-core:2.18.1) and jetified-exoplayer-core-2.18.1.0-runtime (com.bitmovin.player:exoplayer-core:2.18.1.0)
Duplicate class com.google.android.exoplayer2.AudioBecomingNoisyManager found in modules jetified-exoplayer-core-2.18.1-runtime (com.google.android.exoplayer:exoplayer-core:2.18.1) and jetified-exoplayer-core-2.18.1.0-runtime (com.bitmovin.player:exoplayer-core:2.18.1.0)
Duplicate class com.google.android.exoplayer2.AudioBecomingNoisyManager$AudioBecomingNoisyReceiver found in modules jetified-exoplayer-core-2.18.1-runtime (com.google.android.exoplayer:exoplayer-core:2.18.1) and jetified-exoplayer-core-2.18.1.0-runtime (com.bitmovin.player:exoplayer-core:2.18.1.0)
Duplicate class com.google.android.exoplayer2.AudioBecomingNoisyManager$EventListener found in modules jetified-exoplayer-core-2.18.1-runtime (com.google.android.exoplayer:exoplayer-core:2.18.1) and jetified-exoplayer-core-2.18.1.0-runtime (com.bitmovin.player:exoplayer-core:2.18.1.0)
...
...
...
and more...
Im already following the exact steps from the documentation but no success yet,
Any help is appreciated!
Thank very much,
Mateo