Encountered the following problem.

When the program comes to:

JSContext = new JSContext (); 

it displays:

Exception in thread "main" java.lang.RuntimeException: Stub!

There is nothing else in the logs. All I've done before is to install the Gradle library specified in this link https://jitpack.io/#ericwlange/Android .

I wanted to start working with JS scripts on Android, but from the very beginning there was an incomprehensible error. Thank you in advance!!

  • one
    They have written in the repository: AndroidJSCore is DEPRECATED! It is now maintained at its permanent home, LiquidCore . Please migrate to this version . I think it's better to start right away with a new library. - woesss
  • Thanks, I'll take a look. Most likely the case is really in this library - Aidar Zainutdinov

0