How to add mozilla dependency in updated android studio

28 Views Asked by At
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

1

There are 1 best solutions below

1
Jaxon M On

You can use this instead:

implementation "com.faendir.rhino:rhino-android:1.6.0"

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.