bramus / freshinstall

Automatically configure and install software onto your new Mac
https://www.bram.us/2018/01/08/setting-up-macos-with-freshinstall/
MIT License
106 stars 16 forks source link

Android Studio not using Homebrew installed Android SDK #13

Open bramus opened 6 years ago

bramus commented 6 years ago

When installing Android Studio it defaults the path of the Android SDK to ~/Library/Android/sdk/. This will result in a double installation of the Android SDK, as we've installed it via homebrew before into /usr/local/share/android-sdk (symlinked to /usr/local/Caskroom/android-sdk/…).

Ideally this should be changed automatically, as one has to change this manually now:

studio
bramus commented 5 years ago

Note to self: first check if the commit in 1ad86f3 has any effect or not.

If not, try symlinking the existing installation into ~/Library/Android/sdk/.

ln -s <FULL_PATH_TO_ANDROID_SDK> <PATH_TO_ANDROID_STUDIO>/sdk