1. 程式人生 > >AndroidStudio Unable to run 'adb': null

AndroidStudio Unable to run 'adb': null

Unable to run 'adb': null

12:23    'C:\Users\HW\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary

12:23    * daemon not running; starting now at tcp:5037

12:23    could not read ok from ADB Server

12:23    * failed to start daemon

12:23    error: cannot connect to daemon
 今天出現上面的問題,以為埠被佔用,下面是解決端口占用的問題的

  • 首先,開啟命令列工具,檢視失敗資訊中提示的埠是否被佔用(比如我這邊提示的是5037)

    netstat -ano | findstr :5037

  • 如果埠被佔用,在任務列表中找到佔用埠的程序(可在上一步中檢視)

    tasklist | findstr processID

  • 關閉佔用這個埠的程式,然後執行命令手動啟動adb,成功

    adb start-server

但是我發現並沒有程式佔用這個埠。。。後來看到一個帖子 

21:20    Unable to run 'adb': null

21:20    'E:\AndroidSDK\platform-tools\adb.exe start-server' failed -- run manually if necessary

21:20    error: cannot open transport registration socketpair: Invalid argument

21:20    This application has requested the Runtime to terminate it in an unusual way.

21:20    Please contact the application's support team for more information.

21:20    could not read ok from ADB Server

21:20    * failed to start daemon *

21:20    error: cannot connect to daemon

adb無法連線,出現如上日誌檔案

解決方法:

windows 10環境下關閉防火牆即可

試了一下果然就行了

相關推薦

AndroidStudio Unable to run 'adb': null

Unable to run 'adb': null 12:23    'C:\Users\HW\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if

AndroidStudio報錯unable to start adb server:adb server version doesn't ......run manually if necessary

因為生病原因,不得不請了將近一週的假,回到公司後開啟AS的時候出現了一個莫名的錯誤彈窗提示: unable to create debug bridge:unable to start adb server:adb server version(31) doesn't ma

centos7安裝android sdk時報錯Unable to run mksdcard SDK

 系統版本: $ cat /proc/version Linux version 3.10.0-229.20.1.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9

執行OK6410攝像頭程式時出現Unable to handle kernel NULL pointer dereference at virtual address 00000060

[[email protected]]# ./test_usb_camera  Unable to handle kernel NULL pointer dereference at virtual address 00000060 pgd = c3d70000 [000

[AndroidStudio] Unable to delete dirctory 問題

在window上使用Android studio編譯so庫時,提示Unable to delete dirctory “build\intermediates\classes\debug”資料夾,自己手動去找到這個資料夾發現還是不能刪除。 網上提供的答案是“資料夾被佔用”,

驅動開發誤用指標錯誤:Unable to handle kernel NULL pointer dereference at virtual address

前言         今天,來說說驅動開發中誤用指標導致的錯誤:Unable to handle kernel NULL pointer dereference at virtual address xxxxxxxx。這個錯誤是我當作在做液晶驅動使用DMA的時候遇到的,在分

Android studio中提示 unable to locate adb的解決方法

- 檢查是否有其他軟體佔用了adb的埠 1、進入Android studio的terminal,也可以用電腦自帶的控制檯 2、控制檯中輸入 netstat -anp | grep 5037 1)adb佔用的是5037埠,通過埠查詢使用該埠的程序,如

Android studio錯誤:IllegalArgumentException: Unable to locate adb

剛才遇到一個問題,感覺是關於adb被佔用的問題,解除佔用adb好幾次,然後接著重啟都沒用。之後發現是sdk中的platform-tools沒裝,然後把這個裝上去就好了。希望對遇到這方面問題的朋友有幫助。 關於sdk更新慢的問題,我這裡有一個快速更新sdk的方法-----

Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* li

Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket listener: cannot bind to 127.0.0.1:

unable to locate adb

androidstudio  IllegalArgumentException: Unable to locate adb (1)原因:sdk Manager下不存在platform-tools 注意不能再android studio裡面開啟Android SDK Pl

Android studio執行出現錯誤:IllegalArgumentException: Unable to locate adb

更新安裝sdk,  執行出現錯誤,做個筆記。 sdk中的platform-tools沒裝 導致無法使用 Tools - Android - SDK Manager -SDK Tools -Android SDK platform 然後把這個裝上去就好了。希望對遇到

android studio2.1解決Unable to detect adb version, adb output

使用sdk manager更新至Android SDK Platform-Tools 24.0.1版本後出現Unable to detect adb version, adb output問題。無法連線

安卓控件獲取器uiautomatorviewer初體驗:"unable to connect to the adb. check if adb is installed correctly"

isn tdi pty all hal hot cep accep challenge 解決方法:轉自:https://plus.google.com/108487870030743970488/posts/2TrMqs1ZGQv Challenge Accepted:1.

Unable to connect to adb. Check if adb is installed correctly解決方法

測試工具 con bind image platform roi uia -s 行為 1、啟動測試工具 "E:\android-sdk_r24.4.1-windows\android-sdk-windows\tools"中的uiautomatorviewer 2、在

AndroidStudio:Connection refused: connect和unable to resolve dependency for問題解決

兩天之內的第二篇,是因為我昨天剛搜到匯入本地module依賴報錯的解決辦法,今天就發生了正在編譯且沒有本地module依賴專案也報錯unable to resolve dependency for:xxx的方法,重試多次也不好用。 像這種情況,像昨天一樣把專案app目錄下的build.gradl

Unable to resolve dependency for和Could not resolve project 的解決辦法,針對AndroidStudio高版本

前提是這樣的:我找了一個AndroidStudio3.0之前版本的專案,把它其中的Module匯入到一個新專案中作為依賴 然後就出現此報錯資訊,老是說Could not resolve project:xxx 解決了一下午。有人說在Setting-Build,Gradle,xxx選項中

android:Unable to add window -- token null is not for an application的解決方案

Error程式碼: new AlertDialog.Builder(getActivity().getApplicationContext()) .setTitle("No phone access permission") ****** .show(); Err

8.0之後 java.lang.SecurityException: Permission Denial: null asks to run as user 864 but is calling from user 0; this requires android.permission.INTERA

在8.0以下啟動新的activity沒問題,但在8.0系統的手機上就報錯,跳轉不成功 錯誤原因: 目標activity中有如下方法 public int getUserId() {}其父類Context.java裡也有該方法 同名了 /** * Get the userId associated wi

解決Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

轉載自:https://blog.csdn.net/tiny_lxf/article/details/75027865     第一種: sudo vim /etc/resolv.conf  新增nameserver 8.8.8.8 第二種:

如何用adb連線android手機?(我的親自經歷)------ 順便說說unable to connect to 192.168.1.100:5555的原因和解決方法

                        adb是什麼呢? 我就不多說了, 對於搞android開發的人來說, 一定不陌生。 本文講述如何用adb來連線手機。        利用adb來連線手機, 有兩種方式: 1, wifi,  2, usb.        前提條件: 下載adb, 最好把對應的檔案