Application error for ionic while building


I created a simple ionic app using:
ionic start myApp blank. I tried to build the app into my android device.
I’m getting an error showing-
net::ERR_CONNECTION_REFUSED (http://localhost:8080/)

This comes after executing a simple app. Can anyone please help?

1 Like

What is your ionic info output?
What device are you testing on?

ionic cli 4.0.2
node- v10.7.0

Device- Samsung- G360H

This is not the output of running ionic info on the console in the project directory.

That device is 4 years old. Maybe try with a more recent one.

Ok i will try with latest device and will share my experience.
Also i will send complete ionic info out put

5 posts were split to a new topic: net::ERR_CONNECTION_REFUSED (http://localhost:8080/)

Make sure you have internet connection when adding the platform and on first run.

3 posts were merged into an existing topic: Ionic App Mobile Error on Cellular

If your device is running Android <5, your issue might be similar to this here:

For future readers of this topic:
If the device you are testing on is using Android 4.x (e.g. Android 4.4 KitKat), this article might explain what is going on and how to fix it: