I installed the latest version of ionic, cordova and android studio with APK MANAGER with API 26.
Compiled the app: First:
ionic cordova platform add android
ionic cordova build android --release
ionic cordova build android.
It generates the apk but when I put it in the phone it says:
‘aplication error could not connect to the server. (Http: // localhost: 8080)’
Attached photo of APK installed on Android with
app-release-unsigned.apk not installed
API level installed
I did the test compiling in Windows and Debian and the same thing happens doing an example app of ionic:
ionic start app1 tabs or
blank this gives me an
app-release-unsigned.apk file of
3.6MB and an
4.3MB . Being generally 600KB