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


#1

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.


#2

Hi,

You need to downgrade the

cordova-plugin-ionic-webview

plugin to work on android 4.


#3

Hi

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

2018-11-22


#4

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

#5

Thank You. Sorry for late response, It worked.