当前位置:   article > 正文

调用CallStaticObjectMethod报出JNI DETECTED ERROR IN APPLICATION: jclass is an invalid local reference:_jni detected error in application: jni error (app

jni detected error in application: jni error (app bug): jclass is an invalid

最近遇到一个JNI的问题,一套代码在Android上首次运行是OK的,但是在第二次运行之后设备就会崩溃,查看logcat发现报JNI DETECTED ERROR IN APPLICATION错误。

  (1)错误:
  • 1
 accessed stale local reference 0x57200019 (index 6 in a table of size 6)
 JNI DETECTED ERROR IN APPLICATION: jclass is an invalid local reference    in call to CallStaticObjectMethod  from void com.org.vincent.ccalljava.JNI.getTime()
JNI DETECTED ERROR IN APPLICATION: calling 
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/158485
推荐阅读
相关标签
  

闽ICP备14008679号