在Android中集成GeckoView(Integrate GeckoView in Android)

编程入门 行业动态 更新时间:2024-10-28 16:16:50
Android中集成GeckoView(Integrate GeckoView in Android)

我在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.

更多推荐

本文发布于:2023-08-07 22:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466362.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Android   GeckoView   Integrate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!