在Cordova中运行Ionic 4应用程序后出现白屏 [英] White screen after running Ionic 4 app in cordova

查看:547
本文介绍了在Cordova中运行Ionic 4应用程序后出现白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是离子领域的新手. 当我在ionic 4中启动我的第一个项目时,它与Command完美配合 用于网络 离子服务 但是在 ionic cordova运行android 它在模拟器上只显示白屏

I am new in ionic. When I started my first project in ionic 4 it worked perfectly with command for web ionic serve but in case of ionic cordova run android it shows nothing but white screen on emulator

项目结构:

  • 我只创建了家庭组件
  • 离子版本4
  • 角度版本6.0.0

我尝试过的解决方案

1.删除平台,而不是再次添加 离子科尔多瓦-平台rm android 离子cordova -platform添加android

1. Removing platform than adding it again ionic cordova -platform rm android ionic cordova -platform add android

注意:

我通过添加简单的空白模板创建了项目, 比生成的/home组件.我已经在该项目中创建了很多东西,因此需要帮助.但无法在模拟器上运行.

I have created project by adding simple blank template, Than generated /home component. I need help as I have created so many things in this project. but could not run it on emulator.

如果我想念的东西超出我们的讨论范围. 谢谢.

If I miss anything than we can discuss. Thank you.

推荐答案

您使用的是哪个版本的android?如果您使用的是Android 5,则这是ionic 4中的一个已知问题.请检查此链接

Which version of android are you using?. If you are using Android 5, It's a know issue in ionic 4. Check this link

这篇关于在Cordova中运行Ionic 4应用程序后出现白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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