android Rhino error can't load this type of class file

依然范特西╮ 提交于 2019-12-03 07:10:31
milorad.kukic

I had the same problem and I have found a solution here: Problems using Rhino on Android

By default, rhino will try do optimization by generating JVM bytecode on the fly. Android doesn't run JVM bytecode byt Dalvik bytecode. That is why you have to disable optimization:

context.setOptimizationLevel(-1);

Best regards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!