Application Error net::ERR_CONNECTION_REFUSED (http://localhost/)

hello
i create app in ionic4 type=angular
but when i build apk file I got this error message
i need a help

I found this Post, one of these comands will help you

ionic cordova plugin rm cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview@1.2.1
ionic cordova platforms remove android
rm -rf plugins
ionic cordova build android

Have you found a solution ?
I have the same problem, i just update Angular 7 to 8.

I have follow these steps but still getting same error
any other solution…??

I have similar issue. please help

Ionic:

   Ionic CLI                     : 6.20.6 (C:\Users\abisai.msizilo\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 4.11.13
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.3.10
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 11.0.0, browser 5.0.4, ios 4.5.5
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 26 other plugins)

Utility:

   cordova-res : 0.15.3
   native-run  : 1.7.1

System:

   NodeJS : v12.20.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.8
   OS     : Windows 10