Android Problem: net::ERR_CONNECTION_REFUSED (http://localhost:8080/)

We recently released one of our app and its been giving some users a problem : net::ERR_CONNECTION_REFUSED (http://localhost:8080/) .

We tried checking for a solution and all of them seem to lead to: https://ionic.zone/debug/ionic-and-android-4
which we tried but still the problem is unsolved.

Please assist.

Hi,

You need to downgrade the

cordova-plugin-ionic-webview

plugin to work on android 4.

Hi

Thanks, but we’ve already tried that; see below:

2018-11-22

I had exactly the same problem, I solved it with

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
1 Like

Thank You. Sorry for late response, It worked.

The problem happens to me no in the “build” phase, but when running as debug:
% ionic cordova run android -l -c --device --verbose

1 Like

It worked for me
thanks