Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Dmitriy Prilipko
Added: Dec 19, 2017 9:28 PM
Modified: Dec 19, 2017 9:45 PM
Views: 15
Tags: no tags
install android sdk
  1. # install openjdk
  2. apt-get install openjdk-9-jdk
  3.  
  4. # download android sdk
  5. wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
  6.  
  7. tar -xvf android-sdk_r24.2-linux.tgz -C $HOME
  8.  
  9. cd $HOME/android-sdk-linux/tools
  10.  
  11. # install all sdk packages
  12. ./android update sdk --no-ui
  13.  
  14. # install certain packages with:
  15. # ./android update sdk --no-ui --all --filter 1,2,3,<...>,N
  16. # where N is the number of the package in the list (see previous command)
  17.  
  18.  
  19. # Add the directory containing executables in PATH so that they can be found
  20. echo 'export ANDROID_HOME=$HOME/android-sdk-linux' >> ~/.bashrc
  21. echo 'export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bashrc
  22.  
  23. source ~/.bashrc
  24.  
  25. # Make sure you can execute 32 bit executables if this is 64 bit machine, otherwise skip this
  26. #dpkg --add-architecture i386
  27. #apt-get update
  28. #apt-get install -y libc6:i386 libstdc++6:i386 zlib1g:i386
  29.  
  30.  
  31. # Optionally run build system as daemon (speeds up build process)
  32. # mkdir ~/.gradle
  33. # echo 'org.gradle.daemon=true' >> ~/.gradle/gradle.properties
  34. # See here: https://www.timroes.de/2013/09/12/speed-up-gradle/