本文介绍了cordovawebviewclient无法解析为类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究cordova应用程序(Phonegap)。我使用下面的方法在我的Android main.java
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) {}
});}
在以前的项目中,它工作正常,但在新项目中,它说无法解析符号CordovaWebViewClient。不知道为什么。我有麻烦了。是因为cordova更新?
帮助解决此问题....
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....
推荐答案
Cordova 4删除了 CordovaWebViewClient
class()。
Cordova 4 removed the CordovaWebViewClient
class (see this commit). They've made many breaking changes to support external webviews, like Crosswalk.
请参阅了解详情。
这篇关于cordovawebviewclient无法解析为类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!