I have created a new Ionic 3 app, i haven’t touched it yet, it works fine on browser however when i tried to build and run it on a actual android device, the generated apk output is always
“Couldn’t connect to the server. (http://localhost:8080/)”
see: https://user-images.githubusercontent.com/22809323/43546424-0974fb28-95f2-11e8-92be-1d4099039f85.png
What i have found is that the app works on Android version 8, however when deployed to android 4.4.2 kitkat, it shows the above issue.
Here’s the process i’ve made
-ionic start apktest blank
-cd apktest
-ionic cordova platform add android
-ionic cordova build android
-ionic cordova run android
-ionic start apktest blank
-cd apktest
-ionic cordova platform add android
-ionic cordova build android
-ionic cordova run android
PS: I already have those android sdk,java and directories
Can anybody enlighten me about this issue? Thanks