Skip to content

Commit 0c12790

Browse files
authored
Adding ANDROID_HOME to .extra
1 parent 966d918 commit 0c12790

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ brew cask install --appdir="~/Applications" android-studio
3232

3333
# Remove outdated versions from the cellar.
3434
brew cleanup
35+
36+
# Adding ANDROID_HOME to PATH. Android SDK will be installed in this path when you first open Android Studio
37+
LINE='PATH="export ANDROID_HOME="$HOME/Library/Android/sdk"'
38+
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra
39+
40+
LINE='PATH="export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools'
41+
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra

0 commit comments

Comments
 (0)