码迷,mamicode.com
首页 > 移动开发 > 详细

Android_JNI

时间:2016-11-02 17:13:38      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:hand   rect   top   patch   read   xpath   win   start   null   

 

阅读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

标签:hand   rect   top   patch   read   xpath   win   start   null   

原文地址:http://www.cnblogs.com/elsarong/p/6023399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!