1. 程式人生 > >Anroid 解決小米和魅族不能在mac上調試

Anroid 解決小米和魅族不能在mac上調試

anroid type rac 打開 content spl clas ret andro

第一種方法

1.mac->關於本機->系統報告->usb->copy廠商ID**

2.cmd->echo “ 0x2a45” >> ~/.android/adb_usb.ini

3.adb kill -server
adb start -server
adb devices

另外一種方法

第一步: 查看usb設備信息(我用的是魅族mx3)

在 終端輸入:system_profiler SPUSBDataType 能夠查看連接的usb設備的信息

比方我的usb信息例如以下(部分內容):

M351:

Product ID: 0x4e26

Vendor ID: 0x18d1 (Google Inc.)

Version: 2.33

Serial Number: 351BBJHCBWT6

Speed: Up to 480 Mb/sec

Manufacturer: MEIZU

Location ID: 0x1a120000 / 4

Current Available (mA): 500

Current Required (mA): 2

當中的 vendor ID: 0x18d1 非常重要。記下來

第二步: 創建、改動adb_usb.ini文件

輸入:

vi ~/.android/adb_usb.ini 命令,在打開的 adb_usb.ini文件裏加入0x18d1, (然後保存退出)

然後請一定重新啟動finder :

鼠標單擊窗體左上角的蘋果標誌–>強制退出–>Finder–>又一次啟動

第三步:重新啟動adb

adb kill-server

adb start-server

adb devices

‘).addClass(‘pre-numbering‘).hide(); $(this).addClass(‘has-numbering‘).parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(‘
  • ‘).text(i)); }; $numbering.fadeIn(1700); }); });

    Anroid 解決小米和魅族不能在mac上調試