Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kohii crash when use exoplayer 2.13.3 NoClassDefFoundError TrackSelection #179

Open
ahmadrushdie opened this issue Mar 1, 2022 · 2 comments

Comments

@ahmadrushdie
Copy link

ahmadrushdie commented Mar 1, 2022

dependancies

def kohii_version = "1.1.0.2011003"
implementation "im.ene.kohii:kohii-core:${kohii_version}"
implementation "im.ene.kohii:kohii-exoplayer:${kohii_version}"
implementation "com.google.android.exoplayer:exoplayer:2.13.3"

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/trackselection/TrackSelection$Factory;
at kohii.v1.exoplayer.ExoPlayerConfig.(ExoPlayerConfig.kt:45)
at kohii.v1.exoplayer.ExoPlayerConfig.(ExoPlayerConfig.kt:76)
at kohii.v1.exoplayer.DefaultExoPlayerProvider.(DefaultExoPlayerProvider.kt:32)
at kohii.v1.exoplayer.PlayerViewPlayableCreator$Companion$defaultBridgeCreatorFactory$1.invoke(PlayerViewPlayableCreator.kt:52)
at kohii.v1.exoplayer.PlayerViewPlayableCreator$Companion$defaultBridgeCreatorFactory$1.invoke(PlayerViewPlayableCreator.kt:44)
at kohii.v1.exoplayer.PlayerViewPlayableCreator$bridgeCreator$1.invoke(PlayerViewPlayableCreator.kt:65)
at kohii.v1.exoplayer.PlayerViewPlayableCreator$bridgeCreator$1.invoke(PlayerViewPlayableCreator.kt:37)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at kohii.v1.exoplayer.PlayerViewPlayableCreator.createPlayable(PlayerViewPlayableCreator.kt:76)
at kohii.v1.core.Binder.providePlayable(Binder.kt:94)
at kohii.v1.core.Binder.bind(Binder.kt:65)

@haris15
Copy link

haris15 commented May 23, 2022

Same issue i am facing do you find any solution @ahmadrushdie ?

@eneim
Copy link
Owner

eneim commented Sep 23, 2022

Each Kohii library has an supported ExoPlayer version. Using other ExoPlayer version may not work well and it can produce crash like this. Please make sure to use the same ExoPlayer verion as mentioned in the kohii version.

For example: 1.2.0.201108 -> ExoPlayer 2.11.8 (the number 201108 is taken from the ExoPlayer's library version number).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants