-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception #123
Comments
Most likely redex is removing that method because it's not aware that it's called via JNI. Can you create a config file (docs/Config.md explains how to use one) that contains:
and see if we get past that error? Thanks! |
It doesn,t work! |
@bertmaher same problem |
@bertmaher { And I redex my apk successfully, but when I install my apk, I found the error during installing like this: W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.tencent.assistant.protocol.jce.AppSimpleDetail.toString()' on a null object reference My apk was installed, But when I try to run it, it crash.Here is the error log: E/MediaPlayer: Should have subtitle controller already set And I have no idea to fix it! |
@Phil-Coulson Hello!Recently,i encountered the same question.Did you solve it? 06-07 17:26:54.364: A/art(6733): art/runtime/verifier/method_verifier.cc:3321] Check failed: !Thread::Current()->IsExceptionPending() |
Summary: * Strip out the number in `Class #123`, so that a small change in the number of classes removed doesn't cascade (though renaming needs to be turned off too, of course) * Allow it to locate `extractdexdump` even if it's invoked with the cwd outside the source tree * Print some indicators of progress as we extract the APKs Reviewed By: minjang Differential Revision: D4883718 fbshipit-source-id: 980352c68271dd36db3ba65878c603e172696d17
closing due to age. If you still see this error on the newest version, please re-open or create new issue. |
@justinjhendrick thank you! |
My app used Baidu Map SDK, and I init it in my Customer Application:
onCreate(){
……
SDKInitializer.initialize(getApplicationContext());
……
}
and before redex, my app run fine, but after redex an resign, it crash after install and run.
Here is the error log:
JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchMethodError: no static method "Lcom/baidu/platform/comjni/engine/AppEngine;.despatchMessage(IIIJ)V"
at int com.baidu.platform.comjni.engine.JNIEngine.initClass(java.lang.Object, int) ((null):-2)
at void com.baidu.platform.comjni.engine.AppEngine.InitClass() ((null):-1)
at void com.baidu.platform.comapi.a.() ((null):-1)
at void com.baidu.platform.comapi.c.a(java.lang.String, android.content.Context) ((null):-1)
The text was updated successfully, but these errors were encountered: