mac下adb无法连接华为C8817E

mac测试用华为C8817E,发现adb无法连接,解决方法如下:

  1. 输入命令:system_profiler SPUSBDataType 可以得到如下:
Android:

  Product ID: 0x1052
  Vendor ID: 0x12d1  (Huawei Technologies Co., Ltd.)
  Version: ff.ff
  Serial Number: 80717a61673d
  Speed: Up to 480 Mb/sec
  Manufacturer: Android
  Location ID: 0x1d110000 / 7
  Current Available (mA): 500
  Current Required (mA): 500
  1. 把得到的Vendor ID加入到 ~/.android/adb_usb.ini

  2. 命令行:...

mac下安卓开发中几个问题

  1. Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools.

    解决方法: 安装 android 4.4.2 sdk

  2. 安装sdk时出现 ‘Download interrupted: hostname in certificate didn't match: != OR Done. Nothing was installed.’

    解决方法: Android SDK Manager中偏好设置

    ...