pedroSG94 / vlc-example-streamplayer

Example code how to play a stream with VLC
GNU General Public License v3.0
227 stars 93 forks source link

FindClass(org/videolan/libvlc/Media$Track) failed #28

Open emanuelthedude opened 5 years ago

emanuelthedude commented 5 years ago

Hi, I hope you have an awesome day.

As soon as I download my app with your library from the Play Store (Alpha-Release) I get an error that says:

2019-03-20 16:35:49.803 7092-7092/? E/VLC/JNI/VLCObject: FindClass(org/videolan/libvlc/Media$Track) failed 2019-03-20 16:35:49.804 7092-7092/? E/VLC: VLCJNI_OnLoad failed 2019-03-20 16:35:49.804 7092-7092/? E/VLC/LibVLC: Can't load vlcjni library: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.agenturueberall.gfa4-1n32F-JstKjstSILMXci-w==/lib/arm64/libjniloader.so"

1) Is this a proguard error and can you give me the proguard rules for this library? 2) Why doesn't it happen with my locally installed release version? 3) Do you have an idea how to solve the problem?

All the best and thank you, Emanuel

pedroSG94 commented 5 years ago

Hello, Try keep all class of VLC: -keep class org.videolan.* { ; }

Nirav1432 commented 2 years ago

Hello, Try keep all class of VLC: -keep class org.videolan.* { ; }

Thanks @pedroSG94