简体   繁体   English

离子人行横道应用错误和其他东西

[英]Ionic Crosswalk Application Error and other stuffs

I'm developing an Ionic app and decided to use the Crosswalk(lite) on my project. 我正在开发一个Ionic应用程序,并决定在我的项目中使用Crosswalk(lite)。 I installed the crosswalk lite through here: $ cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE="lite" 我通过这里安装了人行横道lite:$ cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE =“ lite”

After the build it creates 4 apk for me: *android-armv7-debug *android-armv7-debug-unaligned *android-x86-debug *android-x86-debug-unaligned 构建后,它将为我创建4个APK:* android-armv7-debug * android-armv7-debug-unaligned * android-x86-debug * android-x86-debug-unaligned

And then comes the first question: 然后是第一个问题:

1) I understand the different archtecture, but whats the "unaligned" means? 1)我了解不同的体系结构,但是“未对齐”是什么意思?

Moving on, I installed the CORRECT apk to my phone, and when the App run for the first time, I received this error message: 继续,我在手机上安装了CORRECT apk,并且当应用程序首次运行时,我收到以下错误消息:

在此处输入图片说明 On the Emulator, the app don't run at all. 在模拟器上,该应用程序根本无法运行。 So I use 2 other phones and they fired the same messages, BUT after the app shutdown, I tap it to run, and now its fine. 因此,我使用了另外两部手机,并且它们发出了相同的消息,但是在应用关闭后,我点击了它即可运行,现在一切正常。

2) Do you guys know what is this, what am I doing wrong? 2)你们知道这是什么吗,我做错了什么?

3) When I finish the app, cause of the Crosswalk my users will see the: Crosswalk Project Install when they launch the app for the first time? 3)当我完成应用程序时,导致Crosswalk的原因,我的用户将在首次启动该应用程序时看到以下内容:Crosswalk Project Install?

4) And lastly, I know Xwalk increase my app size, but the apk jumped from 30mb to 70mb fully installed. 4)最后,我知道Xwalk增加了我的应用程序大小,但apk从完全安装的30mb跃升到70mb。 Is that right? 那正确吗? Can I do something to decrease this? 我可以做些什么来减少这种情况吗?

Anyway, thanks everyone! 无论如何,谢谢大家! o/ o /

1) ANSWERED IN: https://stackoverflow.com/a/22058230/1691609 1)答复: https ://stackoverflow.com/a/22058230/1691609

It is a two step process. 这是一个两步过程。 The unaligned apk is just an intermediate product. 未对齐的apk只是一个中间产品。

  1. the unaligned apk is generated 生成未对齐的apk
  2. the unaligned gets aligned and produces the aligned apk 未对齐的对齐并生成对齐的apk

2) ANSWERED IN: https://stackoverflow.com/a/12322945/1691609 2)答复: https ://stackoverflow.com/a/12322945/1691609

Solution

In your config.xml file add this line: 在您的config.xml文件中添加以下行:

<preference name="loadUrlTimeoutValue" value="700000" />

Explanation: 说明:

This can be happened due to the following reasons 可能由于以下原因而发生

The core reason: the problem is likely due to the speed of the emulator so the network is too slow complete the communication in a timely fashion. 核心原因:该问题很可能是由于仿真器的速度所致,因此网络太慢,无法及时完成通信。

This can be due to: 这可能是由于:

  1. Your code/data/image is of too much of size ( I guess in your case you are using some images ,as you said you made some UI modifications, may be the size of images are high) 您的代码/数据/图像的尺寸太大(我想您是在使用某些图像,因为您说过您对UI进行了一些修改,可能图像的尺寸很大)
  2. Your script may have a infinite or long loop, so that it takes too much of time to load. 您的脚本可能有无限循环或较长循环,因此加载时间太长。
  3. You will be using too much of scripts (jQuery, iscroll, etc etc.. more number of plugins or scripts ) 您将使用过多的脚本(jQuery,iscroll等。更多数量的插件或脚本)

3) ANSWERED: Yes they will :´( 3)答复:是的,他们会:´(

4) ANSWERED: You can compress your images with Compress.io but the size will be big anyway... 4)答复:您可以使用Compress.io压缩图像,但是大小仍然会很大...

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

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