Cordova run android: ERR_EMPTY_RESPONSE / ERR_CONNECTION_REFUSED

Hello,

I encountered some errors after updating to Angular 16 / Ionic 7. The app was built correctly, but I am unable to run it on the device with livereload.

After the update, there have been some changes:

cordova-plugin-whitelist removed: allow-navigation and access origin inside config.xml

in angular.json: remplaced angular-toolkit by cordova-builders

“ionic-cordova-build”: {
“builder”: “@ionic/cordova-builders:cordova-build”,

update from node@14 to node@18

update to cordova 12

target sdk version 33

here is my ionic info:

Ionic:

   Ionic CLI                     : 7.1.1 (/home/yoann.masson@cbainfo.local/.nvm/versions/node/v18.16.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 7.1.3
   @angular-devkit/build-angular : 16.1.4
   @angular-devkit/schematics    : 16.1.4
   @angular/cli                  : 16.1.4
   @ionic/angular-toolkit        : 10.0.0

Cordova:

   Cordova CLI       : 12.0.0 (cordova-lib@12.0.1)
   Cordova Platforms : android 12.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 38 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.7.2

if someone can help me

Thank’s,

Yoann.

1 Like

Did you find any solution? I encountered same issue and I cant solve it.