(轉載)Android mac 真機調試

來源:互聯網
上載者:User

標籤:des   android   io   ar   sp   for   檔案   div   on   

1.需要下載android SDK 和Eclipse 

2.終端輸入system_profiler SPUSBDataType 找到 MI 2的就是你的手機USB參數

MI 2:

 

              Product ID: 0x9039

              Vendor ID: 0x2717

              Version:  2.28

              Serial Number: 22da4df1

              Speed: Up to 480 Mb/sec

              Manufacturer: Xiaomi

              Location ID: 0xfa140000 / 6

              Current Available (mA): 500

              Current Required (mA): 500

              Capacity: 61.5 MB (61,536,256 bytes)

              Removable Media: Yes

              Detachable Drive: Yes

              BSD Name: disk1

              Partition Map Type: Unknown

              S.M.A.R.T. status: Not Supported

3.終端輸入 vi ~/.android/adb_usb.ini  然後把Vendor ID儲存在這個檔案裡,(vi 中的插入需要輸入i 後才能編輯,儲存並推出 按esc 再shift+: 輸入wq 儲存並推出  不儲存退出 就輸入 !q)。4.在終端,輸入adb提示 command not found.需將 adb的路徑加入到設定檔裡,終端編輯 ~/.bash_profile檔案export PATH=/Users/qc/Desktop/adt-bundle-mac/sdk/platform-tools/:$PATH5.(本人小米)開啟開發人員模式和USB調試。然後在Eclipse裡面右鍵點項目選需要在Debug As –> Debug Configuration裡面設定一下,target選項卡改為manual,手動選擇調試裝置。6.注意如果沒有發現裝置就要嘗試拔插usb。

(轉載)Android mac 真機調試

聯繫我們

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