是否chromeview项目需要从源代码构建试图使用科尔多瓦,Android的chromeview过吗? [英] Does the chromeview project need to be built from source before attempting to use cordova-android-chromeview?

查看:430
本文介绍了是否chromeview项目需要从源代码构建试图使用科尔多瓦,Android的chromeview过吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立在科尔多瓦,Android的chromeview工程项目的例子,我有一个几个问题。最近的一次是,当部署到设备,我收到以下运行时错误:

I am trying to build the example project on the cordova-android-chromeview project and I'm having a few issues. The most recent being that when deployed to the device, I receive the following runtime error:

04-25 10:29:29.593: D/CordovaActivity(1951): CordovaActivity.onCreate()
04-25 10:30:46.433: I/LibraryLoader(1951): loading: webviewchromium
04-25 10:30:46.443: D/dalvikvm(1951): Trying to load lib /data/app-lib/com.myapp.special-1/libwebviewchromium.so 0xb1d53778
04-25 10:30:46.443: D/dalvikvm(1951): Added shared lib /data/app-lib/com.myapp.special-1/libwebviewchromium.so 0xb1d53778
04-25 10:30:46.463: I/LibraryLoader(1951): loaded: webviewchromium
04-25 10:31:08.943: W/dalvikvm(1951): No implementation found for native Lorg/chromium/content/app/LibraryLoader;.nativeLibraryLoaded:([Ljava/lang/String;)I
04-25 10:37:40.423: W/jdwp(1951): Debugger is telling the VM to exit with code=1

如果我读这正确,似乎一些应用程序期望库没有接触到它。我不完全知道如何追查的本机文件的预期。我也不知道该如何产生(或引用?)缺少的库。

If I read this correctly, it seems that some libraries that the app is expecting are not exposed to it. I'm not exactly sure how to track down which native files are expected. Nor am I sure how to generate ( or reference? ) the missing libraries.

我使用的:

我试图运行,使用这种语法科尔多瓦,Android的chromeview附带的示例项目: ./斌/创建〜/桌面/ MyApp的com.myapp.special MyApp的

I am trying to run the Example project that came with cordova-android-chromeview using this syntax: ./bin/create ~/Desktop/myapp com.myapp.special MyApp

难道chromeview只是需要从铬源建?我希望不会,但是这是我目前的想法。

Is it possible that chromeview simply needs to be built from the chromium source? I hope not, but that's my current thinking.

在此先感谢,任何帮助将是AP preciated。

Thanks in advance, any help would be appreciated.

推荐答案

首先改变目标为4.0和4.3之间的任何东西。因为那里的WebView已经被ChromeView驱动ChromeView不上Android 4.4的工作。

First change Target to anything between 4.0 and 4.3. ChromeView does not work on Android 4.4 because there WebView is already driven by ChromeView.

如果没有帮助,请确保您复制webviewchromium.pak到项目的资源文件夹。

If that does not help, make sure you copied the webviewchromium.pak to your project's asset folder.

我更改构建目标至Android 4.3的伎俩。

Changing build target to Android 4.3 did the trick for me.

这篇关于是否chromeview项目需要从源代码构建试图使用科尔多瓦,Android的chromeview过吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆