使用GPUIMage库启动项目时获取此异常。看起来问题与Android. Couldn't load gpuimage-library相同。但是答案中的信息还不够。
有人可以帮助我吗?不管怎样,谢谢。
异常是指这个类:
package jp.co.cyberagent.android.gpuimage;
public class GPUImageNativeLibrary {
static {
System.loadLibrary("gpuimage-library");
}
public static native void YUVtoRBGA(byte[] yuv, int width, int height, int[] out);
public static native void YUVtoARBG(byte[] yuv, int width, int height, int[] out);
}
异常:
FATAL EXCEPTION: GLThread 2588
Process: com.blah, PID: 490
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.blah-2/base.apk"],nativeLibraryDirectories=[/data/app/com.blah-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libgpuimage-library.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at jp.co.cyberagent.android.gpuimage.GPUImageNativeLibrary.<clinit>(GPUImageNativeLibrary.java:21)
at jp.co.cyberagent.android.gpuimage.GPUImageRenderer$1.run(GPUImageRenderer.java:141)
at jp.co.cyberagent.android.gpuimage.GPUImageRenderer.runAll(GPUImageRenderer.java:126)
at jp.co.cyberagent.android.gpuimage.GPUImageRenderer.onDrawFrame(GPUImageRenderer.java:115)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
答案 0 :(得分:0)
这里的问题相同。为了解决这个问题,我将libgpuimage-library.so复制到了正确的文件夹中:
答案 1 :(得分:0)
只需将GPUImage 1.3.0更改为1.2.3:
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.2.3'
然后,它将起作用。