echo Android Studio not installed, please download Android Studio 3.5.3 from https://developer.android.com/studio
read -rsp $'Press any key to continue...\n' -n1 key
exit 1
fi
fi
echo Android Studio Path: $STUDIO_PATH
if [ "$STUDIO_SDK_PATH" == "" ]; then
STUDIO_SDK_PATH=$ANDROID_HOME
if [ "$STUDIO_SDK_PATH" == "" ]; then
STUDIO_SDK_PATH=~/Library/Android/sdk
fi
fi
if [ "$1" != "" ]; then
STUDIO_SDK_PATH=$1
fi
if [ ! -d "$STUDIO_SDK_PATH" ]; then
echo Android SDK not found at: $STUDIO_SDK_PATH
echo Unable to locate local Android SDK location. Did you run Android Studio after installing?
echo If Android Studio is installed, please run again with SDK path as parameter, otherwise download Android Studio 3.5.3 from https://developer.android.com/studio
read -rsp $'Press any key to continue...\n' -n1 key
exit 1
fi
echo Android Studio SDK Path: $STUDIO_SDK_PATH
if ! grep -q "export ANDROID_HOME=\"$STUDIO_SDK_PATH\"" ~/.bash_profile