Android 9.0 编译环境配置
相关下载:https://download.csdn.net/download/qq_33544860/81861525
环境要求
Ubuntu14.04
配置Shell
sudo dpkg-reconfigure dash--->选择否
配置JDK
在~/.bashrc的最后添加以下jdk配置,然后source .bashrc使其生效
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export ANDROID_JAVA_HOME=$JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
安装相关依赖
1.配置JDK源
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
2.安装依赖
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip libswitch-perl
sudo apt-get install openjdk-8-jdk libexpat1-