EspoirX/StarrySky

java.lang.ClassNotFoundException

KunLL opened this issue · 4 comments

KunLL commented

版本是2.6.5
应用里引入过gsyVideoPlayer,也设置了android.enableDexingArtifactTransfrom=false,但是还是会崩溃

java.lang.ClassNotFoundException: Didn't find class "com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory" on path: DexPathList[[zip file "/data/app/com.lc.matouqin-58pkQIkP7u2esWE0w-aj7g==/base.apk"],nativeLibraryDirectories=[/data/app/com.lc.matouqin-58pkQIkP7u2esWE0w-aj7g==/lib/arm64, /data/app/com.lc.matouqin-58pkQIkP7u2esWE0w-aj7g==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.lzx.starrysky.playback.ExoPlayback.buildDataSourceFactory(ExoPlayback.kt:275) 
at com.lzx.starrysky.playback.ExoPlayback.createMediaSource(ExoPlayback.kt:206) 
at com.lzx.starrysky.playback.ExoPlayback.play(ExoPlayback.kt:147) 
at com.lzx.starrysky.manager.PlaybackManager$onPlayMusicImpl$1.onNext(PlaybackManager.kt:94) 
at com.lzx.starrysky.intercept.InterceptorService.handlerInterceptor(InterceptorService.kt:18) 
at com.lzx.starrysky.manager.PlaybackManager.onPlayMusicImpl(PlaybackManager.kt:88) 
at com.lzx.starrysky.control.PlayerControl.playMusicImpl(PlayerControl.kt:145) 
at com.lzx.starrysky.control.PlayerControl.playMusic(PlayerControl.kt:131) 

KunLL commented

找到原因了,gsyVideoPlayer的exoplayer版本比starrySky高导致的