Error White Screen After Update Ionic

After i updated ionic last version. Here my Ionic info

Ionic:

ionic (Ionic CLI) : 4.9.0 (C:\Users\Hai Nam\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.3
@angular-devkit/schematics : 7.2.3
@angular/cli : 7.2.3
@ionic/angular-toolkit : 1.2.3

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 4 other plugins)

System:

(C:\Program Files (x86)\Android\android-sdk)
NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
npm : 6.1.0
OS : Windows 10

I try create a new blank app:

  • With command ionic serve: run ok
  • After that i try to build production: ionic cordova build android --release --prod
    and
    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

I got signer APK, and install this file on my Xiaomi Mi3, App run ok, but after splash screen, i got a blank page.

How can fix that.

Does it work without --prod?
Does it work without --release to build a debug build?
Only if these two work, you should continue with adding the params.

And:
Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: https://ionic.zone/cordova/update

Thank for help Sujan12
Cmd: ionic cordova build android --release => not work
Cmd: ionic cordova build android --prod => not work

Hope my problem is Cordovar version. I will update now

Does ionic cordova build android work?

After update Cordova, it work
Thank Sujan12

1 Like