问题
I am working on cordova application(Phonegap). I am using the following method in my Android main.java
protected CordovaWebViewClient makeWebViewClient(CordovaWebView webView) {
appView.setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {}
});}
In previous projects it is working fine, but in the new project it is saying "can not resolve symbol CordovaWebViewClient". Don't know why. I am having trouble with it. Is it because of the cordova update? Help to resolve this....
回答1:
Cordova 4 removed the CordovaWebViewClient
class (see this commit). They've made many breaking changes to support external webviews, like Crosswalk.
See the 4.0 release notes for more information.
来源:https://stackoverflow.com/questions/32571578/cordovawebviewclient-cannot-be-resolved-to-a-type