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.使用系统签名
Rhino engine null不能使用android.uid.system
2.不使用系统签名
Rhino engine null不能使用android.uid.system

友情提示

rk平台engine名称以及支持情况
即ScriptEngineManager().getEngineByName(名称)是否返回null
rhino/js/javascript 都能正常返回engine实例
JS/JavaScript则返回null
不同平台的结果可能略有不同,仅供参考。(运行sample项目即可查看具体情况)
1.官方sample在rk3399上运行结果
Rhino engine null不能使用android.uid.system

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2022-01-18
  • 2022-02-08
  • 2021-11-26
  • 2021-12-06
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2021-11-07
  • 2021-12-16
  • 2021-10-30
  • 2021-11-15
  • 2022-12-23
  • 2021-05-16
  • 2021-07-12
相关资源
相似解决方案