ubuntu 搭建android编译环境基础配置

如果在键盘输入法系统中,没有“fcitx”选项时,建议先打开终端手动安装fcitx:
sudo apt-get install fcitx//之后配置搜狗输入法

sudo apt upgrade
sudo apt-get update


下载Git

sudo apt-get install git

设置Git账户

git config --global user.email "[email protected]"
git config --global user.name "xxxxx"

下载python

sudo apt-get install python

配置PATH环境变量

mkdir ~/bin
echo "PATH=~/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc

安装JDK
sudo apt-get update
sudo apt-get install openjdk-8-jdk

安装依赖库

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 m4 libssl-dev

安装adb和fastboot
sudo apt-get install adb -y
sudo apt-get install fastboot -y
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot

sudo touch /etc/udev/rules.d/70-android.rules
sudo vim /etc/udev/rules.d/70-android.rules #添加:。。。。。。。。
sudo chmod a+rx /etc/udev/rules.d/70-android.rules
sudo service udev restart

sudo perl -MCPAN -e 'install XML::Simple'

sudo apt-get install vim-gtk

sudo apt-get install libesd0-dev


sudo apt-get install repo

5. 安装wine稳定版//

sudo apt-get install --install-recommends winehq-stable


sudo apt install libgnome2-bin


 

你可能感兴趣的:(Ubuntu,android,ubuntu,java)