离子应用程序适用于ios但不适用于Android [英] Ionic app works with ios but does not on android

查看:104
本文介绍了离子应用程序适用于ios但不适用于Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序可以在ios设备上使用离子服务,离子视图和离子构建ios。我的应用程序也适用于android上的离子视图。
然而,当我运行离子运行android并在Android设备上安装应用程序时,它只显示白色空白页面并且不起作用。

My app works fine with "ionic serve", ionic view and "ionic build ios" on ios device. My app also works fine with ionic view on android. However, when I run "ionic run android" and install the app on android device, it only shows white blank page and does not work.

人们似乎这里讨论了类似的问题和一些可能的解决方案: https://forum.ionicframework.com/t/ionic2-app-show-blank-screen-on-android-device-4- 2-2-使用 - 运行 - 命令和ionicview /十七分之三万九千四百零五
但是,没有一个解决方案适合我。例如,我添加了crosswalk插件但没有用。

People seem having similar issues and some possible solutions are discussed here: https://forum.ionicframework.com/t/ionic2-app-show-blank-screen-on-android-device-4-2-2-using-run-command-and-ionicview/39405/17. However, none of the solutions worked for me. For example, I added crosswalk plugin but did not work.

有人知道它为什么会发生以及如何修复它吗?

Does anybody know why it is happening and how to fix it?

任何建议将不胜感激。在此先感谢。

Any suggestions will be appreciated. Thanks in advance.

推荐答案

尝试更新离子,如果不起作用,可以通过genymotion读取控制台日志

Try updating ionic, if that doesnt work read the console log maybe via genymotion

这篇关于离子应用程序适用于ios但不适用于Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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