title: The method addJavascriptInterface(WebViewActivity.JavaScriptInterface, String) is undefined for the type CordovaWebView
body: <p>I am not able to open link in Cordova webview on HTML button click. It shows "The method addJavascriptInterface(WebViewActivity.JavaScriptInterface, String) is undefined for the type CordovaWebView" </p>
  
  <pre><code>public class WebViewActivity extends CordovaActivity{
  
  
       JavaScriptInterface JSInterface;
       CordovaWebView mainView;
  
      @SuppressLint("SetJavaScriptEnabled") public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
           super.init();
          setContentView(R.layout.webview);
  
          mainView  = (CordovaWebView) findViewById(R.id.webView1);
  
          JavaScriptInterface jsInterface = new JavaScriptInterface(this);
          mainView.getSettings().setJavaScriptEnabled(true);
          mainView.addJavascriptInterface(jsInterface, "JSInterface");
          System.out.println("Opening webview");
          mainView.loadUrl("file:///android_asset/index.html" );
  
  
      }
       public class JavaScriptInterface {
              Context mContext;
  
              /** Instantiate the interface and set the context */
              JavaScriptInterface(Context c) {
                  mContext = c;
              }
  
              public void changeActivity()
              {
                  Log.d("In webviewActivity", "Inside change activity");
                  Intent i = new Intent(WebViewActivity.this, Google.class);
                  startActivity(i);
                  Log.d("After Intent", "Opening google class");
                  finish();
              }
          }
  
       }
  </code></pre>