Ubuntu Android adb調試無法識別設備 -- List of devices attached ???????????? no permissions


在Ubuntu下做Android開發, 使用adb devices調試的時候出現在面的錯誤:


這個問題之前就出現過的,突然就忘了,Mark一下。在網上找了一下,基本上是一些比較麻煩的辦法,但是在我的記憶中這個問題應該是很快就能解決的問題。跟着異常的提示想了一下

$ adb devices * daemon not running. starting it now on port 5037 *
* daemon started successfully * List of devices attached ???????????? no permissions

紅色背景的部分應該是說明權限不夠,於是我嘗試了一下下面的方法:

1.先殺掉當前的adb服務

$ adb kill-server

2. 使用管理員權限開啟服務

1 lennon@lennon-PC:/opt/adt/sdk/platform-tools$ sudo adb start-server 2 * daemon not running. starting it now on port 5037 *
3 * daemon started successfully *

3. 查看所有設備

1 lennon@lennon-PC:/opt/adt/sdk/platform-tools$ adb devices 2 List of devices attached 3 NX403A device

一切都是如此的簡單!

 

另外附上網上長見的一些稍微麻煩的方法:

1. http://peirenlei.iteye.com/blog/1564686

 

 

 

 

 

 


免責聲明!

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



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