Problems using Rhino on Android

后端 未结 3 1387
清酒与你
清酒与你 2020-12-05 14:54

I\'m trying to use Mozilla Rhino in my Java application for Android to evaluate some JavaScript. I am using Eclipse + ADT plugin.

First I tried simply downloading th

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 15:20

    I finally got it to work. I should have paid more close attention to that blog post I linked.

    If I add the line

    cx.setOptimizationLevel(-1);
    

    to disable optimisations, everything works perfectly.

提交回复
热议问题