求助:以正确方式执行 Cocos2dxJavascriptJavaBridge.evalString,仍然报错

cocos creator 2.0.9
android 9.0
MI8 lite

appActivity.runOnGLThread(new Runnable() {
            @Override
            public void run() {
                Cocos2dxJavascriptJavaBridge.evalString("cc.log(\"Javascript Java bridge!\")");
            }
        });

2019-07-02 19:03:43.625 28428-28428/? E/s2d.picsandwor: Not starting debugger since process cannot load the jdwp agent.
2019-07-02 19:03:43.803 28428-28458/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf94 in tid 28458 (GLThread 9444), pid 28428 (s2d.picsandword)
2019-07-02 19:03:43.867 28462-28462/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-07-02 19:03:43.867 28462-28462/? A/DEBUG: Build fingerprint: 'Xiaomi/platina/platina:9/PKQ1.181007.001/V10.3.2.0.PDTCNXM:user/release-keys'
2019-07-02 19:03:43.867 28462-28462/? A/DEBUG: Revision: '0'
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG: ABI: 'arm'
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG: pid: 28428, tid: 28458, name: GLThread 9444  >>> org.cocos2d.picsandword <<<
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf94
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG: Cause: null pointer dereference
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG:     r0  00000000  r1  00000000  r2  cce42070  r3  cce42208
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG:     r4  00000000  r5  cce42038  r6  cce42070  r7  e9175480
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG:     r8  00000001  r9  e91d6c00  r10 00000000  r11 cce42058
2019-07-02 19:03:43.868 28462-28462/? A/DEBUG:     ip  cdcfbb68  sp  cce42000  lr  cd4f9489  pc  cd4f94ea
2019-07-02 19:03:44.086 28462-28462/? A/DEBUG: backtrace:
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #00 pc 005b84ea  /data/app/org.cocos2d.picsandword-ef78wvoj1-5Ar1UafiRlfg==/lib/arm/libcocos2djs.so
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #01 pc 005b8475  /data/app/org.cocos2d.picsandword-ef78wvoj1-5Ar1UafiRlfg==/lib/arm/libcocos2djs.so
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #02 pc 001f80dc  /data/app/org.cocos2d.picsandword-ef78wvoj1-5Ar1UafiRlfg==/lib/arm/libcocos2djs.so (Java_org_cocos2dx_lib_Cocos2dxJavascriptJavaBridge_evalString+48)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #03 pc 000055f1  /data/app/org.cocos2d.picsandword-ef78wvoj1-5Ar1UafiRlfg==/oat/arm/base.odex (offset 0x5000) (org.cocos2dx.lib.Cocos2dxJavascriptJavaBridge.evalString+112)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #04 pc 0040e375  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #05 pc 003e806b  /system/lib/libart.so (art_quick_invoke_static_stub+222)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #06 pc 000a1427  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+154)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #07 pc 001e6615  /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+236)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #08 pc 001e110f  /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+814)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #09 pc 003e3ba3  /system/lib/libart.so (MterpInvokeStatic+130)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #10 pc 00401314  /system/lib/libart.so (ExecuteMterpImpl+14612)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #11 pc 0003fdc8  /data/app/org.cocos2d.picsandword-ef78wvoj1-5Ar1UafiRlfg==/oat/arm/base.vdex (org.cocos2dx.javascript.AppActivity$1.run+4)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #12 pc 001c588b  /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1040734517+378)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #13 pc 001c9eb7  /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+82)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #14 pc 003d66c9  /system/lib/libart.so (artQuickToInterpreterBridge+880)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #15 pc 004128ff  /system/lib/libart.so (art_quick_to_interpreter_bridge+30)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #16 pc 0140299d  /system/framework/arm/boot-framework.oat (offset 0x9c5000) (android.opengl.GLSurfaceView$GLThread.guardedRun+2156)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #17 pc 01404327  /system/framework/arm/boot-framework.oat (offset 0x9c5000) (android.opengl.GLSurfaceView$GLThread.run+182)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #18 pc 0040e375  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #19 pc 003e7f69  /system/lib/libart.so (art_quick_invoke_stub+224)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #20 pc 000a1415  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #21 pc 0034880d  /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #22 pc 00349565  /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+320)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #23 pc 0036a4d7  /system/lib/libart.so (art::Thread::CreateCallback(void*)+866)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #24 pc 000717f1  /system/lib/libc.so (__pthread_start(void*)+22)
2019-07-02 19:03:44.087 28462-28462/? A/DEBUG:     #25 pc 0001e025  /system/lib/libc.so (__start_thread+24)
2019-07-02 19:03:44.538 28462-28462/? E/crash_dump32: cannot open libmiuindbg.so: No such file or directory
2019-07-02 19:03:44.538 1041-1041/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_06
2019-07-02 19:03:44.552 724-724/? E/lowmemorykiller: Error writing /proc/28428/oom_score_adj; errno=22
2019-07-02 19:03:44.567 2145-2267/? E/InputDispatcher: channel '75b489c org.cocos2d.picsandword/org.cocos2dx.javascript.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

请问你解决了吗?我也遇到这样的问题了

需要在构建的时候打开调试模式。
主要是cc.log因为没打开调试就没输出信息导致的。

和上面一样的原因。