Skip to content

Instantly share code, notes, and snippets.

@borgogelli
Forked from pratamawijaya/update.sh
Last active July 23, 2018 07:17
Show Gist options
  • Save borgogelli/cda937900b4c0735fa7812eb2d376def to your computer and use it in GitHub Desktop.
Save borgogelli/cda937900b4c0735fa7812eb2d376def to your computer and use it in GitHub Desktop.
Update android sdk via bash
#!/usr/bin/env bash
#
# Install JUST the required dependencies for the project.
# May be used for ci or other team members.
#
for I in android-25 \
build-tools-25.0.2 \
tool \
extra-android-m2repository \
extra-android-support \
extra-google-google_play_services \
extra-google-m2repository;
do echo y | android update sdk --no-ui --all --filter $I ; done
./sdkmanager "tools" "platform-tools" | echo y
./sdkmanager "build-tools;25.0.3" | echo y
./sdkmanager "platforms;android-25" | echo y
./sdkmanager "extras;android;m2repository" "extras;google;m2repository" | echo y
./sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" | echo y
./sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2" | echo y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment