2014-12-01 22:33:29 -05:00
|
|
|
#!/bin/bash -
|
|
|
|
|
2014-12-05 01:09:39 -05:00
|
|
|
COMPONENTS="
|
|
|
|
tools
|
|
|
|
platform-tools
|
2014-12-14 20:45:19 -05:00
|
|
|
build-tools-21.1.2
|
2015-04-16 00:47:07 -04:00
|
|
|
android-22
|
2014-12-05 01:09:39 -05:00
|
|
|
extra-android-m2repository
|
|
|
|
extra-android-support
|
|
|
|
extra-google-m2repository"
|
|
|
|
|
2015-04-05 17:01:13 -04:00
|
|
|
SDK_VERSION="24.1.2"
|
|
|
|
|
2014-12-05 23:07:22 -05:00
|
|
|
echo "Updating packages..."
|
2014-12-05 23:00:56 -05:00
|
|
|
sudo apt-get update -qq
|
2014-12-05 23:07:22 -05:00
|
|
|
|
|
|
|
echo "Installing Android dependencies..."
|
2014-12-05 23:05:52 -05:00
|
|
|
sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch
|
2014-12-05 23:07:22 -05:00
|
|
|
|
2015-04-05 17:01:13 -04:00
|
|
|
wget http://dl.google.com/android/android-sdk_r${SDK_VERSION}-linux.tgz
|
|
|
|
tar -zxf android-sdk_r${SDK_VERSION}-linux.tgz
|
2014-12-01 22:33:29 -05:00
|
|
|
|
2014-12-05 01:09:39 -05:00
|
|
|
for COMP in ${COMPONENTS}
|
2014-12-01 22:33:29 -05:00
|
|
|
do
|
2014-12-05 23:07:22 -05:00
|
|
|
echo "Installing Android component: $COMP"
|
2014-12-05 22:54:05 -05:00
|
|
|
echo "yes" | android-sdk-linux/tools/android update sdk -u -a -t ${COMP} > /dev/null
|
2014-12-05 22:42:42 -05:00
|
|
|
done
|