上周升級(jí)了Mac OS到10.13.6,前天使用Android Studio帶的手機(jī)模擬器運(yùn)行App,第二天真機(jī)連接筆記本無法識(shí)別,adb一直處在初始化狀態(tài)。
錯(cuò)誤信息如下:
daemo not running, starting no at tcp
Terminated: 15
Unable to create an interface plug-in(e00002be)
adb_auth_init....
Terminated: 15
經(jīng)過兩個(gè)多小時(shí)的搜索和排查,參考了如下文章:
Mac users are unable to access the tablet via fastboot
macbook adb cannot open interface
問題出在最新版的Mac OS和 Android studio的platform-tool 28版本里的下的fastboot文件不兼容。
5037是adb服務(wù)默認(rèn)端口。在這個(gè)過程中使用到了adb命令如下:
查看當(dāng)前連接的所有設(shè)備
adb devices
開啟adb服務(wù)
adb start-server
關(guān)閉服務(wù)
adb kill-server
adb守護(hù)線程未啟動(dòng),無法連接adb時(shí),查看原因
adb nodaemon server
查看80端口被那些程序占用,終端輸入
lsof -i:80
或者
lsof -i tcp:80