You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes include:
* In case `ANDROID_HOME` environment variable is not set, try to determine the correct path to `android-sdk` - either use homebrew's symlink or through `android` executable's location
* Use `android` executable relative to `android-sdk`, set in `ANDROID_HOME` environment variable, for sdk updates
* Split android sdk updates into single command calls in order to avoid problems with license agreements
install("Java SE Development Kit","Installing the Java SE Development Kit... This might take some time, please, be patient. (You will be prompted for your password)",'brew cask install java',false,false)
85
-
execute('echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.profile',"Unable to set JAVA_HOME")
execute("echo y | #{android_executable} update sdk --filter tools --all --no-ui","There seem to be some problems with the Android configuration")
118
+
execute("echo y | #{android_executable} update sdk --filter platform-tools --all --no-ui","There seem to be some problems with the Android configuration")
119
+
execute("echo y | #{android_executable} update sdk --filter android-23 --all --no-ui","There seem to be some problems with the Android configuration")
120
+
execute("echo y | #{android_executable} update sdk --filter build-tools-23.0.2 --all --no-ui","There seem to be some problems with the Android configuration")
121
+
execute("echo y | #{android_executable} update sdk --filter extra-android-m2repository --all --no-ui","There seem to be some problems with the Android configuration")
99
122
100
123
puts"The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."
0 commit comments