App crashes on Downloading Update

Recently my app’s started crashing on “Downloading update…” when I run it on a device (android)

Also when I open the app using Ionic DevApp on my iPhone I get the following error (I think it’s related)

Uncaught (in promise): TypeError: this.deploy.getCurrentVersion is not a function. (In 'this.deploy.getCurrentVersion()', 'this.deploy.getCurrentVersion' is undefined)
http://192.168.0.31:8100/build/vendor.js:52990:30667
step@http://192.168.0.31:8100/build/vendor.js:52990:2100

My Ionic Info is


   ionic (Ionic CLI)  : 4.1.0 (C:\Users\Josh\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic 5.0.1, cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.3, (and 8 other plugins)

System:

   NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Environment:

   ANDROID_HOME : not set
3 Likes

run the following commands…
cordova platform rm android
cordova platform add android@6.3.0
ionic cordova run android --device
////// – build your project again…

Hope it solves your issue…