• Mac android 开发 sdk配置和手机连接


    本文适合已经很熟悉android开发的人员;

     首先安装Mac版的eclipse 

     其次是android sdk的准备;

     由于android sdk在线更新很不方便,所以可以选择复制;准备好Mac下的android sdk的add_ones,build-tools ,extras,platform-tools,tools, 这几个文件夹是配置文件导致Mac跟windows不同的,然后复制自己windows下的platforms这个是android sdk的主要文件这个是通用的。

    然后重启eclipse 指向你的sdk文件夹;

    之后你还会遇到一个问题,android手机无法识别,导致调试无法进行;

    原因是因为,Mac手机无法识别手机,可以手动告诉Mac

    方法如下:

      

    第一步: 查看usb设备信息

    在 终端输入:system_profiler SPUSBDataType     可以查看连接的usb设备的信息

            MI 4LTE:

     

              Product ID: 0x0368

              Vendor ID: 0x2717

              Version: 2.32

              Serial Number: ccee6a3c

              Speed: Up to 480 Mb/sec

              Manufacturer: Xiaomi

              Location ID: 0x14200000 / 7

              Current Available (mA): 500

              Current Required (mA): 500

              Capacity: 11.4 MB (11,440,128 bytes)

              Removable Media: Yes

              Detachable Drive: Yes

              BSD Name: disk2

              Partition Map Type: Unknown

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

     

            Apple Internal Keyboard / Trackpad:

     

              Product ID: 0x0259

              Vendor ID: 0x05ac  (Apple Inc.)

              Version: 2.24

              Speed: Up to 12 Mb/sec

              Manufacturer: Apple Inc.

              Location ID: 0x14500000 / 8

              Current Available (mA): 500

              Current Required (mA): 40

              Built-In: Yes

     

            BRCM20702 Hub:

     

              Product ID: 0x4500

              Vendor ID: 0x0a5c  (Broadcom Corp.)

              Version: 1.00

              Speed: Up to 12 Mb/sec

              Manufacturer: Apple Inc.

              Location ID: 0x14300000 / 2

              Current Available (mA): 500

              Current Required (mA): 94

              Built-In: Yes

     

                Bluetooth USB Host Controller:

     

                  Product ID: 0x8289

                  Vendor ID: 0x05ac  (Apple Inc.)

                  Version: 1.03

                  Speed: Up to 12 Mb/sec

                  Manufacturer: Apple Inc.

                  Location ID: 0x14330000 / 4

                  Current Available (mA): 500

                  Current Required (mA): 0

                  Built-In: Yes

     记住   Vendor ID: 0x2717

    第二步: 创建、修改adb_usb.ini文件

    输入: vi ~/.android/adb_usb.ini 命令,在打开的 adb_usb.ini文件中添加0x1782, 然后保存退出

    注意顶行加入 

    重启eclipse;

  • 相关阅读:
    mysql慢查询日志功能的使用
    回顾JavsScript对象的克隆
    JavaScript的几种继承方式
    再谈JavaScript中的闭包
    重温JavaScript预编译的四个步骤
    PHP常用设计模式
    编译 php-memcache 扩展时提示Cannot find autoconf
    CentOS 7 下编译安装lnmp之PHP篇详解
    CentOS 7 下编译安装lnmp之MySQL篇详解
    MySQL的转义符 ` 作用
  • 原文地址:https://www.cnblogs.com/liuchuanwu/p/4569368.html
Copyright © 2020-2023  润新知