執行android程式控制臺輸出異常The connection to adb is down, and a severe error has occured
在Android專案執行時會出現如下異常:
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'E:\SDK\platform-tools\adb.exe' and can be executed.
這種有很多情況,也有比較多的解決方法:
手機關機重啟,如果還是不行,那直接一點,關閉AS或者Eclipse,重啟電腦
這種有很多情況,也有比較多的解決方法:
1、工作管理員 kill掉adb 或者重啟adb server
2、檢視工作管理員沒有adb,猜測是某個程式佔用了adb埠
5037為adb預設埠 檢視該埠情況如下:
檢視:cmd —— netstat -ano|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5408
TCP 127.0.0.1:5037 127.0.0.1:49542 ESTABLISHED 5408
發現5408佔用了 5037埠
直接在工作管理員裡面kill掉
1)、tasklist 可以找到工作管理員所有程式
2)、taskkilll /f /im 程式名1.exe /f /im 程式名2.exe .... 可以kill掉多個程式
3、重新開啟adb
adb kill-server
adb start-server
4、終極解決辦法--------手機關機重啟,如果還是不行,那直接一點,關閉AS或者Eclipse,重啟電腦
相關文章
- The connection to adb is down, and a severe error has occured.Error
- Android-The connection to adb is down, and a severe error has occuredAndroidError
- eclipse執行android專案出現"The connection to adb is down, and a severe error has occured."的問題EclipseAndroidError
- The connection to adb is down, and a severe error has occured(Android模擬器埠被佔用)ErrorAndroid
- Android開發模擬器報錯問題解決“The Connection to adb is down,and a server error has occured”AndroidServerError
- android中The connection to adb is down,問題和解決Android
- 啟動UltraEdit錯誤An error has occured.The application will be shutdown.ErrorAPP
- 程式執行異常: Modulo by zero
- 異常 This application has no explicit mapping for /error so yAPPError
- 執行 locust 的異常 pywintypes.error 如何解決?Error
- Linux啟動tomcat後執行shutdown.sh關閉時出現異常:Connection refused (Connection refused)LinuxTomcat
- 執行hadoop命令時,出現異常Hadoop
- oracle出異常:Io 異常: The Network Adapter could not establish the connection 解決辦法OracleAPT
- 執行緒池OOM異常執行緒OOM
- 執行時異常和檢查性異常區別
- C++程式丟擲異常後執行順序C++
- 瞭解下C#異常時的輸出C#
- Java中Error和Exception的異同以及執行時異常(Runtime exception)與檢查型異常(checked exception)的區別JavaErrorException
- 執行eclipse.exe時,出現錯誤An error has occurred.See the logfile問題EclipseError
- 解決ionic3 android 執行出現Application ErrorAndroidAPPError
- 執行時異常與一般異常有何異同?
- java.net.ConnectException: Connection refused 異常JavaException
- java.sql.SQLException: Io 異常: Connection refusedJavaSQLException
- 執行程式時,程式返回TooManyResultsException異常行程OOMException
- 執行SQL語句查詢時出現一個SQLException異常SQLException
- Qt5問題解決:關於程式執行後,編譯成功,卻顯示crashed異常退出,不輸出結果QT編譯
- 作業控制(後臺執行)
- JAVA異常處理原則和log4j輸出詳細異常分析Java
- SQLPLUS執行輸出SQL
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- Android 收集程式崩潰異常資訊Android
- 執行ArrayList的remove(object)方法拋異常?REMObject
- JDK執行緒池異常處理方式JDK執行緒
- 異常-編譯期異常和執行期異常的區別編譯
- HttpClient遭遇Connection Reset異常,如何正確配置?HTTPclient
- crontab異常:shell下可以執行命令,執行crontab卻報錯
- 急~~~Error establishing socket異常。Error
- 多apk釋出的Android程式的adb安裝——adb install-multipleAPKAndroid