I am running React Native app on MacBook M1 chip, I have already set up the environment like this, but when I type NPM RUN ANDROID, the error kept showing, please help me out, Thanks
Asked
Active
Viewed 132 times
0
-
Does this answer your question? [JAVA\_HOME is set to an invalid directory:](https://stackoverflow.com/questions/45182717/java-home-is-set-to-an-invalid-directory) – Thanhal P A Apr 08 '22 at 06:12
1 Answers
0
Please check path
export ANDROID_HOME="/Users/yourUsername/Library/Android/sdk"
export PATH=$ANDROID_HOME/emulator:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
please check here

Nensi Kasundra
- 1,980
- 6
- 21
- 34