20190627_解決ADB的device offline問題的兩種方法


故障現象: error: device offline

故障解決:

第一種方法:

C:\Users\WXY\Desktop\XY\adb>adb nodaemon server

cannot bind 'tcp:5037'

C:\Users\WXY\Desktop\XY\adb>netstat -ano|findstr  "5037"

  TCP    127.0.0.1:5037   0.0.0.0:0       LISTENING       41416

  TCP    127.0.0.1:5037    127.0.0.1:53689   TIME_WAIT       0

C:\Users\WXY\Desktop\XY\adb>tasklist | findstr "41416"

adb.exe      41416 Console      1      8,200 K

C:\Users\WXY\Desktop\XY\adb>taskkill /pid "41416" /t /f

成功: 已終止 PID 41416 (屬於 PID 28764 子進程)的進程。

第二種方法:

那么使用下面這種方法, 前提是你需要安裝QQ, 打開你的下面這個目錄, 找不到的話就用搜索工具搜索  tadb.exe  , 只要你安裝了QQ, 就會有這個

C:\Users\你的計算機名\AppData\Roaming\Tencent\AndroidServer\1.0.0.584 這里面有一個騰訊封裝的adb叫做 tadb.exe

C:\Users\你的計算機名\AppData\Roaming\Tencent\AndroidServer\1.0.0.584>tadb connect 192.168.1.190

connected to 192.168.1.190:5555

C:\Users\你的計算機名\AppData\Roaming\Tencent\AndroidServer\1.0.0.584>tadb.exe  pull /storage/emulated/0/Screenshots/Screenshot_20190627-122353.png ./abc.png

error: device unauthorized. Please check the confirmation dialog on your device.

//這個錯誤提示你需要你在Android設備上確認一下

C:\Users\WXY\AppData\Roaming\Tencent\AndroidServer\1.0.0.584>tadb.exe  pull /storage/emulated/0/Screenshots/Screenshot_20190627-122353.png ./abc.png

30 KB/s (281681 bytes in 8.986s) //我這條語句就是將遠程Android上的截屏下發到本地pC上

C:\Users\WXY\AppData\Roaming\Tencent\AndroidServer\1.0.0.584>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM