-
Notifications
You must be signed in to change notification settings - Fork 477
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
引用Library Module成功,但是在XML引用org.wysaid.view.CameraRecordGLSurfaceView,报错 #15
Comments
求大神解答。我遇到同样的问题。;) |
@RockyLin @geek-paulwong libx264.142 这个文件是arm-v7a 架构的, 我看到你们的报错里面有 arm64-v8a 字样, 应该是加载的路径错误, 这个需要你们改正一下~~ |
@wysaid 考虑到arm64-v8a里面没有libx264.142这个文件(解压apk后查看,确实没有),我把armeabi-v7a这个文件夹以及里面的so复制了好几份,并分别改名为:arm64-v8a, x86, x86_64, armeabi, 放在armeabi-v7a所在的lib下,运行报错如下: java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/app/com.rocky.TestApp-1/lib/arm64/libx264.142.so" >= file size: 0 >= 0 谢谢大神! |
请问大神,通用的话,应该怎么设置。谢谢。 |
@RockyLin |
长时间录制视频,会挂掉,不知道是否可以开源jni的代码,想研究下? |
@silentsugar |
一般12个小时以上,android国产平板定制出来的 |
@silentsugar |
@wysaid Thank you!!! 👍 |
IDE:Android Studio
引用第android-gpuimage-plus Library做为Dependency Lib, 没有问题。但是在布局里面,使用了Library中的org.wysaid.view.CameraRecordGLSurfaceView, 运行报错如下:
E/AndroidRuntime: FATAL EXCEPTION: GLThread 1340
Process: com.rocky.TestApp, PID: 26679
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.rocky.TestApp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.rocky.TestApp-1/lib/arm64, /data/app/com.rocky.TestApp-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libx264.142.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
at org.wysaid.nativePort.CGEFrameRenderer.(CGEFrameRenderer.java:11)
at org.wysaid.view.CameraGLSurfaceView.onSurfaceCreated(CameraGLSurfaceView.java:413)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1503)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
报错行NativeLibraryLoader.java:15:
System.loadLibrary("x264.142");
后来我在这个库的Demo上试着改了应用的包名,也出现运行报错。把包名改回来,就能正常运行。
大神能给个解释吗?
The text was updated successfully, but these errors were encountered: