Rhino简介
Rhino 是‘Give access to RhinoScriptEngine from the JSR223 interfaces on Android JRE.’,可以在android
上使用js.(项目地址https://github.com/APISENSE/rhino-android)
sample地址: https://github.com/aveuiller/RhinoSampleApp
engine返回null问题
测试发现Rhino不能使用系统签名,如果使用返回null
1.使用系统签名
2.不使用系统签名
友情提示
rk平台engine名称以及支持情况
即ScriptEngineManager().getEngineByName(名称)是否返回null
rhino/js/javascript 都能正常返回engine实例
JS/JavaScript则返回null
不同平台的结果可能略有不同,仅供参考。(运行sample项目即可查看具体情况)
1.官方sample在rk3399上运行结果