Bloggers recently engaged in a MacBook, the Android development is much more cool, the program compiled that speed really makes me feel good, especially in the previous time with Windows to start eclipse a few minutes, compile and spend a long time, but with the Mac found ADB do not know how to match, Before very little research on non-Windows system, so there is no way, have to refer to search engines, and finally the configuration succeeded, in fact, very simple, just a few lines of command.
1. Open the terminal and enter the following command in turn:
CD ~touch. Bash_profileopen-e. Bash_profile
2.at this point, open a blank document in TextEdit and add the following command line (/xxx/xxx/platflom-tools/for your adb-placed file path):
Export path=${path}:/xxx/xxx/platflom-tools/
3.Save exit TextEdit, close terminal and exit
After a few steps above, we've configured the environment variables for both ADB and fastboot, so let's test it, connect your phone first, and make sure the phone turns on USB debugging. In Terminal input:
ADB devices
Enter, if the ID of your phone is returned, the configuration is successful (Android4.2 above will require verification on the phone side)!