Ionic app在android 4版本上显示白屏 [英] Ionic app shows white screen on android 4 versions

查看:2367
本文介绍了Ionic app在android 4版本上显示白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发离子应用程序,它在浏览器以及android 5版本中运行良好但是当我尝试在andriod 4版本中安装我的相同apk时,它只是显示白屏并没有显示任何内容。

I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything.

在安装了我无法构建的所有插件之后,我曾尝试安装人行横道,白名单和启动画面插件。我附上已安装插件的截图并构建错误请帮助我出错。

i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong.

请找到我安装插件的图片

此外,请查看我在建设时遇到的错误该应用。

Also, Please find the error i am getting while building the app.

请查找构建错误图片

我在config.xml文件中有以下内容

I am having the following in config.xml file

 <preference name="android-minSdkVersion" value="16" />
 <preference name="android-targetSdkVersion" value="16" />


推荐答案

所以,我找到了解决这个问题的方法..
已安装的Crosswalk插件增加了大约17MB的应用程序大小,然后我尝试安装Crosswalk Lite,效果很好。

So, i found the solution to this issue.. Installed Crosswalk plugin which adds around 17MB to the app size then i tried installing Crosswalk Lite which worked well.

这里有一些你应该寻找的东西config.xml:

1. < preference name =android-minSdkVersionvalue =16/>

Here are few things you should look for in your config.xml :
1. <preference name="android-minSdkVersion" value="16"/>

2.最重要的是这一个:
我之前使用的xwalk测试版

2.Most important is this one : I was using beta version of xwalk earlier

 <preference name="xwalkVersion" value="xwalk_core_library_beta:18+"/>
 <preference name="xwalkMode" value="embedded"/>

给我的apk大小约33MB其中实际应用大小为11MB

gives me apk of size around 33MB where actual app size is 11MB

现在我正在使用金丝雀版

now i am using canary version

<preference name="xwalkVersion" value="xwalk_core_library_canary:17+" />
<preference name="xwalkMode" value="lite" />

给了我大小约21MB的apk,实际的应用程序大小是11MB。

gives me apk of size around 21MB where actual app size is 11MB.

请参考上面的回答,帮助很多。

Please refer to thepio answer above it helped alot.

这篇关于Ionic app在android 4版本上显示白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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