This article is suitable for those who are already familiar with Android development;
First install the Mac version of Eclipse
Next is the preparation of the Android SDK;
Since the Android SDK online update is not convenient, so you can choose to copy; Ready for Mac Android SDK Add_ones,build-tools, Extras,platform-tools,tools, These folders are configuration files that cause Mac to be different from Windows, and then copy your own Windows under platforms This is the main file of the Android SDK which is generic.
Then restart Eclipse to point to your SDK folder;
After that you will also encounter a problem, Android phone is not recognized, resulting in debugging can not be done;
The reason is because the Mac phone does not recognize the phone, you can manually tell the Mac
Here's how:
First step: View USB Device Information
In terminal input: System_profiler Spusbdatatype can view information for connected USB devices
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 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 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 Mb/sec
Manufacturer:apple INC.
Location ID:0X14330000/4
Current Available (MA): 500
Current Required (MA): 0
Built-in:yes
Remember Vendor id:0x2717
Step Two: Create and modify the Adb_usb.ini file
Enter: VI ~/.android/adb_usb.ini command, add 0x1782 in open Adb_usb.ini file, then save exit
Note Top row Join
Restart eclipse;
Mac Android Development SDK Configuration and phone connection