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

这个错误一般是什么原因呢 #1510

Open
MrR0990 opened this issue Jun 21, 2016 · 4 comments
Open

这个错误一般是什么原因呢 #1510

MrR0990 opened this issue Jun 21, 2016 · 4 comments

Comments

@MrR0990
Copy link

MrR0990 commented Jun 21, 2016

06-21 15:11:30.299 com.lingxicollege A/MobUncaughtExceptionHandler: JNI_ERR returned from JNI_OnLoad in "/data/app/com.lingxicollege-1/lib/arm/libijksdl.so"
java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.lingxicollege-1/lib/arm/libijksdl.so"
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:988)
at tv.danmaku.ijk.lxmedia.player.IjkMediaPlayer$1.loadLibrary(IjkMediaPlayer.java:154)
at tv.danmaku.ijk.lxmedia.player.IjkMediaPlayer.loadLibrariesOnce(IjkMediaPlayer.java:166)
at tv.danmaku.ijk.lxmedia.player.IjkMediaPlayer.initPlayer(IjkMediaPlayer.java:206)
at tv.danmaku.ijk.lxmedia.player.IjkMediaPlayer.(IjkMediaPlayer.java:202)
at tv.danmaku.ijk.lxmedia.player.IjkMediaPlayer.(IjkMediaPlayer.java:193)

@bbcallen
Copy link
Contributor

You didn't build native library successfully.

@pollyfat
Copy link

pollyfat commented Dec 1, 2016

try to add

-keep class tv.danmaku.ijk.media.player.** { ; }
-keep class tv.danmaku.ijk.media.player.IjkMediaPlayer.**{
; }
-keep class tv.danmaku.ijk.media.player.ffmpeg.FFmpegApi.{*; }
-keep class .ijkplayer.
{ *; }

to your proguard file, depends on your ijkplayer package location.It works for me.

@gongtingshisi
Copy link

why the fix can resolve the problem,from #2490 ? I mean, code confusion when compiling will cause link lib error on runtime? @pollyfat

@fukemy
Copy link

fukemy commented Sep 24, 2018

not working to me

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

5 participants