我在Kitkat(4.4)的webview中面临文件上传问题。 根据https://code.google.com/p/android/issues/detail?id=62220 ,由于新版webview中缺少方法,因此无法在4.4中完成。
因此搜索并发现GeckoView( https://wiki.mozilla.org/Mobile/GeckoView )作为webview的替代方案。 我按照https://wiki.mozilla.org/Mobile/GeckoView中指定的所有步骤操作,仍然没有在模拟器和Android设备上运行项目。
我尝试在https://wiki.mozilla.org/Mobile/GeckoView中下载和导入示例项目Geckobrowser,但它为getCurrentBrowser()方法提供了编译时错误。
我正在使用Windows操作系统。 任何人都可以指导我,不知道我错过了什么。 对于正确方向的任何领导,我都会非常满意。
I'm facing problem in file upload in webview in Kitkat(4.4). As per https://code.google.com/p/android/issues/detail?id=62220 it can't be done in 4.4 due to missing method in new version of webview.
Hence searched and found GeckoView(https://wiki.mozilla.org/Mobile/GeckoView) as alternative for webview. I followed all steps specified at https://wiki.mozilla.org/Mobile/GeckoView, still project is not running in emulator as well as android device.
I tried downloading and importing sample project Geckobrowser in https://wiki.mozilla.org/Mobile/GeckoView, but it gives compile time error for getCurrentBrowser() method.
I'm using Windows OS. Can anyone please guide me through, not able to know what i'm missing. I'll really great-full for any lead in correct direction.
最满意答案
你必须检查cpu abi版本,并更改geckoview_library和geckoview_asset以匹配abi。
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/
从链接中,您可以下载几种geckoview库。
这是一个样本。
[DIR] latest-mozilla-central-android-armv6/ 12-Dec-2013 11:50 - [DIR] latest-mozilla-central-android-r7/ 12-Dec-2013 11:56 - [DIR] latest-mozilla-central-android-x86/ 12-Dec-2013 11:56 - [DIR] latest-mozilla-central-android/ 12-Dec-2013 11:56 -在每个文件夹中,下载geckoview_library和geckoview_asset。
You must check cpu abi version, and change geckoview_library and geckoview_asset to match the abi.
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/
From the link, you can download several kinds of geckoview library.
This is a sample.
[DIR] latest-mozilla-central-android-armv6/ 12-Dec-2013 11:50 - [DIR] latest-mozilla-central-android-r7/ 12-Dec-2013 11:56 - [DIR] latest-mozilla-central-android-x86/ 12-Dec-2013 11:56 - [DIR] latest-mozilla-central-android/ 12-Dec-2013 11:56 -In each folder, download geckoview_library and geckoview_asset.
更多推荐
发布评论