csdnwr 2015-12-04 03:47 采纳率: 0%
浏览 5946
已采纳

jni调用java方法报错!!!

12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] JNI DETECTED ERROR IN APPLICATION: calling static method java.lang.String com.library.utils.MD5Utils.md5(java.lang.String) with CallObjectMethod
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] in call to CallObjectMethod
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] from java.lang.String com.mb.library.nativeutils.DmCoding.getMD5(java.lang.String)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] "main" prio=5 tid=1 Runnable
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] | group="main" sCount=0 dsCount=0 obj=0x752bf000 self=0xf4827800
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] | sysTid=23825 nice=0 cgrp=default sched=0/0 handle=0xf74bbbec
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] | state=R schedstat=( 387939683 56711068 527 ) utm=33 stm=5 core=0 HZ=100
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] | stack=0xff7b0000-0xff7b2000 stackSize=8MB
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] | held mutexes= "mutator lock"(shared held)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at com.mb.library.nativeutils.DmCoding.getMD5(Native method)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at com.colorpick.activity.CorCppTestActivity.onClick(CorCppTestActivity.java:53)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.view.View.performClick(View.java:4908)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.view.View$PerformClick.run(View.java:20378)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.os.Handler.handleCallback(Handler.java:815)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.os.Handler.dispatchMessage(Handler.java:104)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.os.Looper.loop(Looper.java:194)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at android.app.ActivityThread.main(ActivityThread.java:5691)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at java.lang.reflect.Method.invoke!(Native method)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at java.lang.reflect.Method.invoke(Method.java:372)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
12-04 11:33:08.818: A/art(23825): art/runtime/check_jni.cc:70]
12-04 11:33:08.818: A/libc(23825): Fatal signal 6 (SIGABRT), code -6 in tid 23825 (com.colorpick)

  • 写回答

2条回答 默认 最新

  • csdnwr 2015-12-04 06:39
    关注

    这个是由于jni方法名称与javanative声明的不对应

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 adb连接不到手机是怎么回事?
  • ¥15 vs2022无法联网
  • ¥15 TCP的客户端和服务器的互联
  • ¥15 VB.NET操作免驱摄像头
  • ¥15 笔记本上移动热点开关状态查询
  • ¥85 类鸟群Boids——仿真鸟群避障的相关问题
  • ¥15 CFEDEM自带算例错误,如何解决?
  • ¥15 有没有会使用flac3d软件的家人
  • ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,
  • ¥15 docker实践项目