Err_connection_refused on emulator with api 19

I get this error when launch app on android emulator with api 19: err_connection_refused (http://localhost.8080/)
What I do:

  • Ionic start test blank
  • Ionic cordova platform add android@6.4
  • Ionic cordova run android

What I have:
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.10
Cordova Platforms  : android 6.4.0
Ionic Framework    : ionic-angular 3.9.2


Node : v8.11.3
npm  : 5.6.0
OS   : Windows 10

Any idea? I’ve tried with api 25 and have no problem. The project is clean, without additional plugins. only a blank project
Sorry my english.

What Android version are you testing on?

Android version 4.4
I create the platform with comand: ionic cordova platform add android@6.4

Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or updated Ionic app. The current version 2.x doesn’t support Android 4.x any more.

Read here for more background and possible solutions:

1 Like

Thank you very much for your help.