Created
January 5, 2017 21:35
-
-
Save gardner/476325edcbeb66edf0513c9aa659d9cd to your computer and use it in GitHub Desktop.
android build environment for ubuntu 16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get install git ccache automake lzop bison gperf build-essential \ | |
zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx \ | |
libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools \ | |
pngcrush schedtool dpkg-dev liblz4-tool make optipng maven -y | |
wget -S -O - http://source.android.com/source/51-android.rules | \ | |
sed "s/<username>/ubuntu/" | \ | |
sudo tee >/dev/null /etc/udev/rules.d/51-android.rules; | |
sudo udevadm control --reload-rules | |
echo 'export USE_CCACHE=1' >> /home/ubuntu/.bashrc | |
echo 'export CCACHE_DIR=/home/ubuntu/.ccache' >> /home/ubuntu/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment