当前位置:  开发笔记 > 编程语言 > 正文

在Android 2.2上运行HelloCordova时找不到类'android.webkit.WebResourceResponse'

如何解决《在Android2.2上运行HelloCordova时找不到类'android.webkit.WebResourceResponse'》经验,为你挑选了0个好方法。

我试着按照这个教程:http: //docs.phonegap.com/en/2.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

并得到以下错误:

05-08 15:35:59.845: E/dalvikvm(307): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.getWhitelistResponse

这里有一个人解释错误:https://issues.apache.org/jira/browse/CB-3041

This is a known issue. Because Android 2.3 does not have android.webkit.WebResourceResponse, this code is considered dead by Android 2.3's Dalvik. This means your whitelisting doesn't work properly like it does on Android 4.x, as per CB-2099. I'm going to keep this open, but lower the priority, since we know what causes it and it's an easy "First Bug" for someone if they really want to fix this.

他告诉修复很简单,但没有解释如何解决它--.-太棒了!

显然,一个修复不是用Android 2.2模拟器运行它,因为它适用于Android 4.2.

但是我如何让它在Android 2.2中运行?

我想构建一个与API Level 8及更高版本兼容的应用程序.

推荐阅读
谢谢巷议
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有