Validation is possible:
1. Locate the local path of the Android SDK,
ADB command under Platform-tool, credited as xxxx
My path is (/applications/eclipse/android-sdk-mac_x86/platform-tools)
2. Open Terminal input
Touch. Bash_profile
Open-e. Bash_profile Point Enter
3. Add a path
The. Bash_profile opens and we add the path here,
If there is already content in the open document, we just add it later; XXXX (note that the front must be separated by semicolons),
If it's a blank document, let's enter the content.
Export Path=${path}:xxxx
Save, turn off this document,
4. Terminal input command source. bash_profile
5. Terminal Input command adb point enter, if command not found is not displayed, it is valid and the environment is set to complete.
can refer to:
It must be stated that, when developing with eclipse, you do not use Android to configure the environment variables, in its properties to specify the Android installation directory, but after setting the environment variables for our future development, especially in the terminal debugging, save a lot of trouble. Below I will in the MAC environment configuration steps are recorded as follows, the online introduction of the article a lot, but there are some small details of the problem, the following is my practice record, especially some details.
1. Create the file ~/.bash_profile in the local directory (home directory, which is your own user's home folder, ~/). Note ~/.bash_profile file (hidden file). The commands I use to edit or create files with Vim are as follows:
Vim ~/.bash_profile
2, write the following in the file, in the inside the tools path plus here is the ":" Colon to separate, and do not have an empty space, otherwise, I have learned in the above, which is different from the environment variable of window system, it uses ";" Semicolon to separate!
Export Path=${path}:/users/android-sdk-mac_x86/tools:/users/android-sdk-mac_x86/platform-tools
Where:/users/android-sdk-mac_x86/tools is not fixed, it points to the tools directory of the Android SDK,/users/android-sdk-mac_x86/platform-tools refers to The Platform-tools directory to the Android SDK is also subject to availability.
For example, my own configuration of the computer is:/USERS/DANS88/ANDROID-SDK This directory, so to use this path to replace.
3, then, exit the Vim edit state, press ": Wq", save.
4, execute the command, let the configuration take effect:
Execute the following command: Source ~/.bash_profile
5, verify: Enter the ADB carriage return. If command not found is not displayed, the command is valid and the environment variable setting is complete.
Setting ANDROID?ADB environment variables in Mac