When the MAC system uses ADB for the first time, it reports an error because it needs to configure tools,
When using the MAC for development, you use the ADB instruction to perform some operations. If you have not configured the Android environment variables, you will encounter the problem of ADB: command not found. You need to configure the Android environment variables on the Mac
Operation steps:
1. Open the terminal terminal of the Mac and enter Cd ~/[enter the home directory of the current user]
2. Enter touch. Bash_ Profile [if not. Bash_ Profile, create a file]
3. Enter open. Bash_ Open the file we created and a text edit box will pop up. If the environment is configured for the first time, the text edit box will be blank.
4 . export ANDROID_ HOME=/Users/haijunren/Library/Android/sdk
export PATH=${PATH}:${ANDROID_ HOME}/tools
export PATH=${PATH}:${ANDROID_ Home}/platform tools
note: Android in 4_ Home should be filled in according to its own SDK path, and the rest can be copied directly. As for the SDK path, you can open Android studio and search the SDK in preference (Windows setting) to view it
Enter source. Bash in the terminal_ Profile [make our changes effective]
Enter ADB [verify whether the configuration is complete, if the ADB: command not found is not displayed, the configuration is complete]
Read More:
- Mac opens Terminal and reports an error -bash:: command not found
- -bash: sqlplus: command not found [How to Solve]
- Error in Linux running file: bash: $’\r’: command not found
- How to Solve Linux Error: -bash: unzip: command not found
- Linux Install Bee and Execute Error: bash: bee: command not found
- [Solved] Linux Mongodb Error: # Error: coul-bash: connecting: command not found
- arm-eabi-gcc: command not found [How to Solve]
- After Centos installation is complete, ifconfig: command not found
- How to Use Apt get Command Under Mac OSX
- Git commit – M ‘upload submit times error command “husky run” not found.
- [Solved] G++ Error: Command ‘g++‘ not found, but can be installed with:
- Windows writes shell script and executes shell error [Solved]
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- linux Ubuntu Error: No command ‘setenv‘ found
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] Bash: Syntax error: redirection unexpected
- Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file.
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- Shell Script syntax error near unexpected token `done’
- [Solved] bash: /etc/vimrc: line 15: syntax error near unexpected token `“autocmd“‘