Why white screen stuck after splash screen in Ionic 4?

前端 未结 8 1732
盖世英雄少女心
盖世英雄少女心 2020-12-19 02:11

I run ionic cordova run android for my Ionic Cordova project. At this time, I have my mobile connected to PC via USB. So when I run that command, it installs th

8条回答
  •  庸人自扰
    2020-12-19 02:48

    In my case it was something related to android platform config. I did following to resolve the issue:

    1. Delete android folder(in your project directory or under platforms directory.)
    2. Run command to add android as platform.

    npx cap add android

    Above command is for ionic with Capacitor. You can use regular command if you are using cordova.

    1. Open Android Studio and create APK. This APK should work as expected.

提交回复
热议问题