Development record of developer who study hard everyday.

, ,

Sloved "command not found:adb" on M1

 How to solve "command not found:adb" error on M1

Android develop blog

I am using M1 when developing android app.

But when I execute adb command, I encounter error message, "command not found: adb".

This is because you did not set environmental variable.


The Solution is...

1. Open terminal

2. Open the vi editor

Command is "vi ~/.zshrc"

3. enter environmental variables

export PATH=$PATH:~/Library/Android/sdk/platform-tools
export ANDROID_HOME=~/Library/Android/sdk
export PATH="$HOME/.bin:$PATH"
export PATH="~/Library/Android/sdk/platform-tools":$PATH

4. Run .zshrc

Command is "source ~/.zshrc"









Share:

댓글 없음:

댓글 쓰기