You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在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)
在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.html 和 http://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重新编译库文件。
请帮忙解决一下。
The text was updated successfully, but these errors were encountered: