今天在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 # MX4 0x2a45
这样就可以了