So, you have installed Android Studio, and is setting it up for react native, buuuut
you're new to fish and it seems like it doesn't have a .bashrc
or .zshrc
equivalent.
worry not, just run the following, in order:
Set the ANDROID_HOME variable, here the U
will make it persist through restarts, and the x
will make it be exported:
set -Ux ANDROID_HOME $HOME/Android/Sdk
And now, you can append the Android Studio folders to your PATH:
set -U fish_user_paths $ANDROID_HOME/emulator $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/tools $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/tools-bin $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/platform-tools $fish_user_paths
This is it! Now you should be ready to go.
Thanks for this! For me was
set -Ux ANDROID_HOME $HOME/Library/Android/sdk