Upload APK on Device


#1

Hi guys,
i execute “ionic run android --device” command but receive this error:

Error: C:\Users$USER_HOME\AppData\Local\Android\sdk\platform-tools\adb.exe: Command failed with exit code 1 Error output:
error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Di norma è consentito un solo utilizzo di ogni indirizzo di socket (protocollo/indirizzo di rete/porta). (10048)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
could not read ok from ADB Server

  • failed to start daemon *
    error: cannot connect to daemon

APK is created and I need to upload manually on device.

Help me please.
Regards,
Luca


#2

Seems like a problem with the Android SDK,

What is your Cordova (ionic info in the console) and cordova-android version (ionic platform ls in the console)?
What Android SDK do you have installed?


#3

Your system information:

Cordova CLI: 7.0.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.7.0
Xcode version: Xcode 8.3.2 Build version 8E2002

I solved with reboot. I don’t undestand.

Thanks


#4

Update to stable Ionic 2.2.3.[quote=“lsantaniello, post:3, topic:89254”]
Ionic App Scripts Version: 1.0.0
[/quote]

And this to the newest one - I think we were up to 1.3.7 on this one.


#5

npm install @ionic/app-scripts@latest --save-dev