I picked up the Android development again. In, I made a preliminary exploration. After that, the various packaging methods of phonegap finally had to be native to be smooth;
No more nonsense. Paste the steps directly (open the development and debugging mode of the mobile phone)
1. Command window input: system_profiler SPUSBDataType
Display
MX4:
Product ID: 0x0c02
Vendor ID: 0x2a45
Version: ff. ff
Serial Number: 750BBKJ22QMV
Speed: Up to 480 Mb/sec
Manufacturer: Meizu
Location ID: 0x14100000/8
Current Available (mA): 500
Current Required (mA): 500
Record the value of Vendor ID: 0x2a45 and leave it as a backup
Step 2: create and modify the adb_usb.ini file
Input: vi ~ /. Android/adb_usb.ini command, add 0x2a45 to the open adb_usb.ini File (save and exit)
Then restart the finder: click the Apple icon in the upper left corner of the window-> force exit-> Finder-> restart
2: Add the adb command to the environment (skip this step if added)
Vi ~ /. Bash_profile file
Export PATH =/Users/leeyz/Desktop/adt-bundle-mac/sdk/platform-tools/: $ PATH
3. Step 3: restart adb
Adb kill-server
Adb start-server)
Adb devices
The list is displayed.