码迷,mamicode.com
首页 > 移动开发 > 详细

mac系统连接android手机

时间:2014-11-12 23:00:52      阅读:332      评论:0      收藏:0      [点我收藏+]

标签:android   style   io   color   sp   for   strong   文件   div   

mac系统不能连接android手机问题的解决方案:

1、插上手机

2、找到android手机的vendor ID:

     终端执行CMD:  system_profiler SPUSBDataType

在列出的usb设备中找到自己的手机,copy下vendor ID

 N828 Android Phone:


              Product ID: 0x0c02

              Vendor ID: 0x0bb4  (HTC Corporation)

              Version: 2.55

              Serial Number: 0123456789ABCDEF

              Speed: Up to 480 Mb/sec

              Manufacturer: AMOI

              Location ID: 0x1d110000 / 8

              Current Available (mA): 500

              Current Required (mA): 500


3、将vandor ID放到配置文件中:  ~/.android/adb_usb.ini

终端执行CMD : vi  ~/.android/adb_usb.ini

将上面的vendor ID写到文件的最后面, :wq 保存退出

4、如果没有设置adb环境变量,设置一下:

终端执行CMD: vi ~/.bash_profile

在文件最后加上: 

export PATH=/Users/miaojun/work/tools/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/:$PATH

:wq 保存退出

 终端执行CMD: source ~/.bash_profile

adb devices

已经连接上adnroid手机了



mac系统连接android手机

标签:android   style   io   color   sp   for   strong   文件   div   

原文地址:http://blog.csdn.net/miaojunking/article/details/41053759

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!