Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 15:38:33
Original
1960 people have browsed it

在调用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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template