1. Androidstudio or eclipse is already installed
2. Download and configure the Android SDK
3. Connect your Android phone to your Mac via the USB cable and open the terminal input System_profiler Spusbdatatype
4. Locate the product ID of the corresponding device and copy it
5. Terminal Input VI ~/.android/adb_usb.ini, enter VI
6. Enter I into VI edit, paste the product ID into it, then press ESC and press shift+: then enter Wq save, if you do not need to save the input!q
The above step is to edit and save the exit action.
7. Open the Android phone's developer mode and USB debugging, reseat the USB
8. Open Androidstudio to run a normal project
OK, complete, if you want to test with another phone, repeat the steps above to add the product Id
A man drove to the says he
Links: https://www.jianshu.com/p/956a34daff98
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
Mac Android Real Machine Debug