【Eclipse Android】Mac下eclipse無法連接手機調試問題

很多Android程序員 用Mac 來開發。但是Mac下eclipse連接 手機存在一些問題。下面就個人經驗分享一下。

1.確保手機開啓了usb調試模式 並且連上了電腦

2.設置好你的機器環境配置變量

3.在mac終端輸入

system_profiler SPUSBDataType會顯示一些數據 (如:我的是一加android手機)
Product ID: 0x9011
Vendor ID: 0x2a70
Version: 2.32
Serial Number: b965c8b0
Speed: Up to 480 Mb/sec
Manufacturer: Android
Location ID: 0x14100000 / 6
Current Available (mA): 500
Current Required (mA): 500
Capacity: 22.1 MB (22,144,080 bytes)
Removable Media: Yes
Detachable Drive: Yes
BSD Name: disk2
Partition Map Type: Unknown
S.M.A.R.T. status: Not Supported
Volumes:
OnePlus Drivers:
Capacity: 19.3 MB (19,281,920 bytes)
Available: Zero KB
Writable: No
File System: ISO Rockridge
BSD Name: disk2s0
Mount Point: /Volumes/OnePlus Drivers
Content: CD_ROM_Mode_1

這個Vendor ID: 0x2a70 非常重要 copy你的0x2a70
終端輸入命令 echo0x2a70 >> ~/.android/adb_usb.ini 將設備的廠家ID輸入到 adb_usb的初始配置文件中。
重新啓動 一下 adb.命令是先關閉 adb kill-server;再打開adb start-server.
Last login: Sat Dec 19 18:44:31 on console
localhost:~ liulonglingadbkillserverlocalhost: liulongling adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
localhost:~ liulongling$ adb devices
List of devices attached
b965c8b0unauthorized

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章