将GeckoView集成到Android中 [英] Integrate GeckoView in Android
问题描述
我在Kitkat(4.4)的Webview中上传文件时遇到问题. 根据 https://code.google.com/p/android/issues/detail?id = 62220 ,由于新版的Webview中缺少方法,因此无法在4.4中完成.
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.
因此搜索并找到了GeckoView( https://wiki.mozilla.org/Mobile/GeckoView)作为webview的替代方法. 我仍然按照 https://wiki.mozilla.org/Mobile/GeckoView 指定的所有步骤进行操作项目未在模拟器以及android设备中运行.
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.
我尝试在 https://wiki.mozilla.org/Mobile/GeckoView中下载和导入示例项目Geckobrowser. ,但它会给出getCurrentBrowser()方法的编译时错误.
I tried downloading and importing sample project Geckobrowser in https://wiki.mozilla.org/Mobile/GeckoView, but it gives compile time error for getCurrentBrowser() method.
我正在使用Windows操作系统.谁能指导我,不知道我在想什么.我会为正确方向上的任何领先而竭尽全力.
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.
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/
您可以从该链接下载几种geckoview库.
From the link, you can download several kinds of geckoview library.
这是一个示例.
[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.
In each folder, download geckoview_library and geckoview_asset.
这篇关于将GeckoView集成到Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!