Android_JNI
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android_JNI相关的知识,希望对你有一定的参考价值。
阅读error堆栈信息并分析:
首先这是一个运行时的严重错误, 出现在VisProxyWorker线程中
首要的错误原因是Java语法库(lang)中的链接错误(UnsatisfiedLinkError), 因为运行时Native方法是不存在的. 但是为什么编译时没有发现?!
1 androidRuntime: FATAL EXCEPTION: VisProxyWorker
2 Process: com.hik.visapp, PID: 19388
3 java.lang.UnsatisfiedLinkError: Native method not found: com.hik.visapp.net.VisProxy.nativePreReg: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
4 at com.hik.visapp.net.VisProxy.nativePreReg(Native Method)
5 at com.hik.visapp.net.VisProxy$WorkerHandler.handleMessage(VisProxy.java:84)
6 at android.os.Handler.dispatchMessage(Handler.java:102)
7 at android.os.Looper.loop(Looper.java:136)
8 at android.os.HandlerThread.run(HandlerThread.java:61)
Process: com.hik.visapp, PID: 25147
java.lang.UnsatisfiedLinkError: Couldn‘t load vis_jni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.hik.visapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.hik.visapp-1, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.hik.visapp.ui.DesktopActivity.<clinit>(DesktopActivity.java:68)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5030)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
at dalvik.system.NativeStart.main(Native Method)
以上是关于Android_JNI的主要内容,如果未能解决你的问题,请参考以下文章