implementation 'org.mozilla:rhino:1.7.13'.
its giving syntax error in updated version
Am trying to import mozilla library in java.anyone can please guide me regarding this error.i want to use built in functions like setOptimizationLevel() and enter() etc
You can use this instead:
It handles optimization settings and other compatibility issues for you. Check out this android example project for reference https://github.com/F43nd1r/rhino-android-example.