Daniel Zlotin 8 years ago
parent
commit
5e21d42fa3
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      scripts/installAndroidSDK.sh

+ 7
- 0
scripts/installAndroidSDK.sh View File

1
 #!/bin/sh -e
1
 #!/bin/sh -e
2
 
2
 
3
+# fix for https://code.google.com/p/android/issues/detail?id=223424
4
+mkdir -p ~/.android
5
+
6
+# download android SDK
7
+echo "Downloading Android SDK"
3
 curl --location http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
8
 curl --location http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
4
 
9
 
10
+# copy licenses
11
+echo "Copying Android licenses"
5
 scriptdir=`dirname $0`
12
 scriptdir=`dirname $0`
6
 cp "${scriptdir}"/android-licenses/* "${ANDROID_HOME}"/licenses
13
 cp "${scriptdir}"/android-licenses/* "${ANDROID_HOME}"/licenses
7
 
14