解決android sdk 運行出現 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的問題

來源:互聯網
上載者:User

標籤:logs   read   運行   term   str   cat   server   img   not   

ionic3項目,在添加android平台後,cordova run android 出現 以下問題:

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每個通訊端地址(協議/網路地址/連接埠)只允許使用一次。 (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

具體原因是 5037連接埠被佔用了。

開啟命令提示字元輸入以下:

 netstat -aon|findstr 5037

讓我們看看進程的具體描述

tasklist /fi "PID eq 2880"

強制退出進程

taskkill /pid 5008 /f

再重啟一下adb

adb start-server

當我再運行cordova run android 就沒問題了。

 

此隨筆乃本人學習工作記錄,如有疑問歡迎在下面評論,轉載請標明出處。

如果對您有協助請動動滑鼠右下方給我來個贊,您的支援是我最大的動力。

 

解決android sdk 運行出現 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.