1、
问题:
D/FLACRecorder(26743): Setting up encoder /data/data/com.borneo.speech/files/20141123081747.flac rate: 22050 channels: 1 format 16
F/art (26743): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: illegal class name 'fm.audioboo.jni.FLACStreamEncoder'
F/art (26743): art/runtime/check_jni.cc:65] (should be of the form 'package/Class', [Lpackage/Class;' or '[[B')
F/art (26743): art/runtime/check_jni.cc:65] in call to FindClass
F/art (26743): art/runtime/check_jni.cc:65] from void fm.audioboo.jni.FLACStreamEncoder.init(java.lang.String, int, int, int)
F
解决:
把点换成 /
参考:http://stackoverflow.com/questions/27092044/android-art-runtime-check-jni-cc-error-on-package-name
本文解决了一个在Android应用中遇到的ART Runtime检查JNI CC错误的问题,通过将点字符替换为特殊字符,成功解决了非法类名错误。

16万+

被折叠的 条评论
为什么被折叠?



