Home  >  Article  >  Database  >  JNI ERROR (app bug): accessed stale local reference 0xbc0002

JNI ERROR (app bug): accessed stale local reference 0xbc0002

WBOY
WBOYOriginal
2016-06-07 15:38:331884browse

在调用jni接口的时候出现这样的问题,而之前的使用正常,反复检查,发现是android4.0后对垃圾回收机制做了修改导致jni调用错误, 1、更改你的适配版本为11也不要写最高适配,(在mainfest中) 2、或者修改你的jni不要把static对象返回给你 参考http://www.cnbl

在调用jni接口的时候出现这样的问题,而之前的使用正常,反复检查,发现是android4.0后对垃圾回收机制做了修改导致jni调用错误,

1、更改你的适配版本为11也不要写最高适配,(在mainfest中)

JNI ERROR (app bug): accessed stale local reference 0xbc0002

2、或者修改你的jni不要把static对象返回给你   

参考http://www.cnblogs.com/beautiful-scenery/p/3589857.html?utm_source=tuicool

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:开启JBoss7/WildFly的accessNext article:Oracle特权提升