cordovawebviewclient cannot be resolved to a type

ぐ巨炮叔叔 提交于 2019-12-11 23:51:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!