1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
sudo dpkg --add-architecture i386 && sudo apt update sudo apt install libc6:i386 lib32z1 sudo apt install unzip git python2.7-minimal python-openssl
cd /home/leux/android wget https://repo.huaweicloud.com/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz tar -xzvf jdk-7u80-linux-x64.tar.gz
wget https://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin chmod +x android-ndk-r10e-linux-x86_64.bin && ./android-ndk-r10e-linux-x86_64.bin
wget https://dl.google.com/android/android-sdk_r21-linux.tgz tar -xzvf android-sdk_r21-linux.tgz
wget https://dl.google.com/android/repository/platform-23_r03.zip unzip -d android-sdk-linux/platforms/ platform-23_r03.zip
wget https://dl.google.com/android/repository/build-tools_r23.0.3-linux.zip mkdir android-sdk-linux/build-tools unzip -d android-sdk-linux/build-tools/ build-tools_r23.0.3-linux.zip
export JAVA_HOME=/home/leux/android/jdk1.7.0_80 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export ANDROID_HOME=/home/leux/android/android-sdk-linux export NDK_ROOT=/home/leux/android/android-ndk-r10e export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$ANDROID_HOME/tools:$NDK_ROOT
~/android/ ├── jdk1.7.0_80/ jdk-7u80-linux-x64.tar.gz ├── android-ndk-r10e/ android-ndk-r10e-linux-x86_64.bin └── android-sdk-linux/ android-sdk_r21-linux.tgz ├── add-ons ├── tools 针对pc平台下使用的SDK管理工具 ├── platforms Android API platform-23_r03.zip ├── build-tools 开发和打包工具 build-tools_r23.0.3-linux.zip 32位 └── platform-tools 针对pc端和移动端进行交互的一些工具 platform-tools_r21-linux.zip
|