1)下载源代码,找到源码目录下的Readme;
2)
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libudev-dev
sudo apt-get install freeglut3-dev
sudo apt-get update
3) 安装jdk
下载jdk版本解压,配置环境变量
export JAVA_HOME=/home/xxxx/share_file/jdk1.8.0_92
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
4) 安装sdk
配置环境变量:
export MY_BIN="/home/xxxx/share_file/Sdk/platform-tools"
export PATH=$PATH:$MY_BIN
5) 安装ndk
6)安装 android studio
[Desktop Entry] Version=1.0 Type=Application Name=AndroidStudio Exec="/home/xxx/SdkDir/android-studio/bin/studio.sh" %f Icon=/home/xxx/SdkDir/android-studio/bin/studio.png Terminal=false ~ ~