【发布时间】:2015-04-30 18:23:38
【问题描述】:
我将 enum 传递给 android 本机模块,但在运行时出现此错误:
[错误] : JNIUtil: !!!无法转换未知的 Java 对象类 'miy.Enums$Status' 到 Js 值!!!
[INFO] : libc: 致命信号 11 (SIGSEGV) 在 0x00000000 (code=1),线程 6614 (KrollRuntimeThr)
上面的错误是在本地模块中的函数被调用之前显示的,所以看起来问题出在JNI层。
那么如何将enum 传递给本机模块?
【问题讨论】:
标签: titanium-mobile titanium-alloy titanium-modules titanium-android