在Ubuntu16.04上搭建Android8.0编译环境
Posted 布列瑟农的秋天
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Ubuntu16.04上搭建Android8.0编译环境相关的知识,希望对你有一定的参考价值。
1. 安装AOSP编译工具
sudo apt install git-core
sudo apt install gnupg
sudo apt install flex
sudo apt install bison
sudo apt install gperf
sudo apt install build-essential
sudo apt install curl
sudo apt install libc6-dev
sudo apt install libssl-dev
sudo apt install libncurses5-dev:i386
sudo apt install libxml2-utils
sudo apt install zlib1g-dev:i386
sudo apt install libx11-dev:i386
sudo apt install libreadline6-dev:i386
sudo apt install libgl1-mesa-dev
sudo apt install g++-multilib
sudo apt install tofrodos
sudo apt install python-markdown
sudo apt install python-mako
sudo apt install x11proto-core-dev
sudo apt install xsltproc
sudo apt install dpkg-dev
sudo apt install ccache
2. 安装jdk8
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export PATH
3. 使用jack-server
停止 jack-server
./prebuilts/sdk/tools/jack-admin kill-server
卸载 jack-server
./prebuilts/sdk/tools/jack-admin uninstall-server
启动 jack-server
./prebuilts/sdk/tools/jack-admin start-server
4. 配置samba服务器
安装samba服务 apt install samba
添加samba用户 smbpasswd -a 用户名
重启samba服务 service smbd restart
建立samba共享目录
【work_eara】
path=/home/user/work_eara
available=yes
browseable=yes
public=yes
writable=yes
guest ok=no
create mask=0644
以上是关于在Ubuntu16.04上搭建Android8.0编译环境的主要内容,如果未能解决你的问题,请参考以下文章
如何在ubuntu16.04 上搭建 phpstorm + xdebug 调试