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

libsplayer的UnsatisfiedLinkError问题 #3

Open
samtangweicheng opened this issue Feb 17, 2016 · 0 comments
Open

libsplayer的UnsatisfiedLinkError问题 #3

samtangweicheng opened this issue Feb 17, 2016 · 0 comments

Comments

@samtangweicheng
Copy link

在6.0的机器上运行demo的时候,报了以下的错误:
java.lang.UnsatisfiedLinkError: dlopen failed: /data/data/com.sina.playerdemo_v2/libs/libsplayer.so: has text relocations
at java.lang.Runtime.load(Runtime.java:332)
at java.lang.System.load(System.java:1069)
at com.sina.sinavideo.coreplayer.splayer.MediaPlayer.(MediaPlayer.java:36)
at com.sina.sinavideo.coreplayer.splayer.VideoView.openVideo(VideoView.java:754)
at com.sina.sinavideo.coreplayer.splayer.VideoView.access$6(VideoView.java:706)
at com.sina.sinavideo.coreplayer.splayer.VideoView$1.surfaceCreated(VideoView.java:624)
at android.view.SurfaceView.updateWindow(SurfaceView.java:597)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:179)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2055)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5573)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

参照http://www.myexception.cn/ai/2026287.htmlhttp://stackoverflow.com/questions/32346402/libavcodec-so-has-text-relocations 中的描述,对libsplayer.so 进行了检查:如下:
samtang-virtual-machine:~/桌面$ readelf -a libsplayer.so | grep TEXTREL
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL BIND_NOW

这可能需要使用最新的ndk重新编译库文件。
请帮忙解决一下。

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

1 participant