解決Mac上Android開發時adb串連不到手機問題

來源:互聯網
上載者:User

標籤:

今天在Mac OS上進行Android開發的時候,開啟eclipse串連不到手機MX4問題

 

1. 插入手機開啟 Terminal,輸入 system_profiler  SPUSBDataType

2. 在顯示結果中找  Vendor ID:

 

 

USB 3.0 Hi-Speed Bus:      Host Controller Location: Built-in USB      Host Controller Driver: AppleUSBXHCI      PCI Device ID: 0x9c31       PCI Revision ID: 0x0004       PCI Vendor ID: 0x8086       Bus Number: 0x0a         MX4:          Product ID: 0x0c02          Vendor ID: 0x2a45          Version: ff.ff          Serial Number: 75UBBKQ22PTN          Speed: Up to 480 Mb/sec          Manufacturer: Meizu          Location ID: 0x14200000 / 7          Current Available (mA): 500          Current Required (mA): 192

 

 3. 記下這個號,在Terminal中轉到 vi  /Users/xxx/.android/adb_usb.ini  (如果沒有會版建立檔案)

   4. 把上面那個號插入到新的一行中,也下格式就可以

    

# ANDROID 3RD PARTY USB VENDOR ID  LIST# USB ‘android update adb‘ TO GENERATE# USB VENDOR ID PER LINE# MX40x2a45

  這樣就可以了

 

解決Mac上Android開發時adb串連不到手機問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.