简体   繁体   English

离子人行横道配置以构建X86 APK

[英]Ionic crosswalk configuration to build x86 apk

I am developing ionic application. 我正在开发离子应用。 Using Crosswalk for the smooth performance in lower versions of android. 使用Crosswalk在较低版本的android中获得流畅的性能。 I can successfully build but i only got a single APK file of armv7. 我可以成功构建,但是我只有一个armv7 APK文件。 Actually i need multiple APK file of armv7 and x86. 实际上,我需要armv7和x86的多个APK文件。

Following is the command used for installing Crosswalk 以下是用于安装Crosswalk的命令

"ionic browser add crosswalk" “离子浏览器添加人行横道”

Settings in config.xml file config.xml文件中的设置

<preference name="xwalkVersion" value="19+" /> <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" /> <preference name="xwalkMode" value="embedded" /> <preference name="xwalkMultipleApk" value="true" />

Please help me to solve this issue. 请帮我解决这个问题。 What should i do to get multiple apk file as output. 我应该怎么做才能获得多个apk文件作为输出。

Thanks in advance. 提前致谢。

In Ionic documentation, they say that before you needed to set an environnement variable for multiple apk but no longer now. 在Ionic文档中,他们说,在您需要为多个apk设置环境变量之前,但现在不再是。 Maybe an outdated version. 也许是过时的版本。

http://blog.ionic.io/crosswalk-comes-to-ionic/ http://blog.ionic.io/crosswalk-comes-to-ionic/

For building the apk, I advise you to use : 为了构建apk,我建议您使用:

ionic build android

And if you don't manage to make it work, you can still use the cordova plugin. 而且,如果您无法使其正常运行,您仍然可以使用cordova插件。 Don't forget to remove the browser. 不要忘记删除浏览器。

ionic browser revert android
ionic plugin add cordova-plugin-crosswalk-webview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM