1. 程式人生 > >android 開發環境搭建(Ubuntu)

android 開發環境搭建(Ubuntu)

低版本:

Ubuntu 14
sudo apt-get install openjdk-7-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 libgl1-mesa-dev libxml2-utils xsltproc unzip

當前版本:

Ubuntu 16
sudo apt-get install openjdk-8-jdk android-tools-adb bc bison build-essential curl flex g++-multilib gcc-multilib gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc yasm zip zlib1g-dev git-core python

安裝常用工具:

sudo apt update

apt install openssh-server
apt install vim
apt install screen

apt install samba

配置Samba,以sukha使用者為例

vim /etc/samba/smb.conf
[sukha]
        path = /home/sukha
;       available = yes
        valid users = root, sukha
        writeable = yes
;       browseable = yes

smbpasswd -a sukha
smbpasswd -a root
/etc/init.d/smbd restart

windows下:

net use n: \\vs-ubu-android\sukha REM vs-ubu-android( 主機名) 對映到N盤