After the android environment is set up, you need to configure the android environment variables, which will be helpful for future debugging.
Next I will take the configuration steps in the mac environment:
1. Create the file. bash_profile in the local directory (home directory ).
2. Write the following in the file: export PATH =$ {PATH}:/Users/sxpmg/Application/android-sdk-mac_x86/tools:/Users/sxpmg/Application/android-sdk-mac_x86/platform-tools
Where:/Users/sxpmg/Application/android-sdk-mac_x86/tools is not fixed, it points to the android SDK tools directory, /Users/sxpmg/Application/android-sdk-mac_x86/platform-tools point to the platform-tools directory of the android SDK, also depends on the specific situation. This is only the path used for configuration.
3. Run the following command: source. bash_profile
4. Verification: Enter adb and press Enter. If the command not found is not displayed, the command is valid and the environment is highlighted.
Author "sxmalinhu"