Skip to content

Instantly share code, notes, and snippets.

@paveldudka
Created December 10, 2016 22:09
Show Gist options
  • Save paveldudka/d6b8187e46942a11cf60c72feca0d7a9 to your computer and use it in GitHub Desktop.
Save paveldudka/d6b8187e46942a11cf60c72feca0d7a9 to your computer and use it in GitHub Desktop.
#!/bin/bash
#this is a small script which updates Android SDK from command line.
#Needs to be executed from Android SDK root
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | tools/bin/sdkmanager \
"tools" \
"platform-tools" \
"platforms;android-25" \
"build-tools;25.0.1" \
"extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta4" \
"extras;google;m2repository" \
"extras;android;m2repository" \
"extras;google;google_play_services"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment