react-native-track-player: Duplicate package names

Hi, thanks for this great library. I am working in a project that uses a other players that use old exoplayer dependencie and I having these kind of errors:

 Duplicate class com.google.android.exoplayer2.ui.WebViewSubtitleOutput$1 found in modules jetified-exoplayer-ui-2.14.2-runtime (com.google.android.exoplayer:exoplayer-ui:2.14.2) and jetified-exoplayer-ui-r2.16.4-runtime (com.github.DoubleSymmetry.ExoPlayer:exoplayer-ui:r2.16.4)

 Duplicate class com.google.android.exoplayer2.video.spherical.CameraMotionListener found in modules jetified-exoplayer-core-2.14.2-runtime (com.google.android.exoplayer:exoplayer-core:2.14.2) and jetified-exoplayer-core-r2.16.4-runtime (com.github.DoubleSymmetry.ExoPlayer:exoplayer-core:r2.16.4)

It is because Kotlin audio is using the same “com.google.android.exoplayer2” package name, maybe could be it changed for future versions to avoid the conflict ?

_Originally posted by @SystemBlad in https://github.com/DoubleSymmetry/react-native-track-player/discussions/1264#discussioncomment-2185744_

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 29 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Track this PR which should ultimately resolve this issue: https://github.com/doublesymmetry/KotlinAudio/pull/33

@mpivchev still facing the issue in 3.2.0.

Hi, currently working on #1447. I will pick this issue up after this. If one of you wants to contribute to this issue so we can get it out sooner, we would greatly appreciate it 😃

This should be fixed in 3.1.0. If you still have issues, please reopen this.

@DennisdeWitNL You are probably looking at the wrong thing

Example

 Duplicate class com.google.android.exoplayer2.upstream.crypto.AesCipherDataSink found in modules jetified-exoplayer-datasource-2.17.1-runtime (com.google.android.exoplayer:exoplayer-datasource:2.17.1) and jetified-exoplayer-datasource-r2.17.2-runtime (com.github.doublesymmetry.Exoplayer:exoplayer-datasource:r2.17.2)

The problem isn’t with class com.google.android.exoplayer2.upstream the conflict is with what is in the brackets (): (com.google.android.exoplayer:exoplayer-datasource:2.17.1)

So the conflicting module is: exoplayer-datasource