Ubuntu及Windows ADB裝置no permissions的解決方案

來源:互聯網
上載者:User

標籤:

本人曾在Windows下及Ubuntu下都遇到過Android裝置無法識別的情況,就是run as Android Application的時候,target顯示"??????",使用adb devices 查看裝置狀況,顯示

List of devices attached
????????????    no permissions

網上有很多解決方案,對於Ubuntu,有人說是因為USB許可權,問題

輸入 sudo lsusb 找到自己的USB裝置,在/etc/udev/rules.d/目錄下找到自己的裝置檔案,然後添加一段代碼。

本人經過多次嘗試,發現並不是這樣的,實際原因,應該和Windows一樣,port被佔用。

解決方案。

輸入sudo adb kill-server

然後sudo adb start-server

出現下面一段

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

然後輸入 adb devices

發現裝置online 問題解決!

Ubuntu及Windows ADB裝置no permissions的解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.