AOSP编译

1 编译环境
Win10系统安装VMplayer14,主机16G内存,I3-4170 ,虚拟机ubuntu-16.04.1-desktop-amd64,12G内存。

2 软件安装
sudo apt-get update
sudo apt-get install m4
sudo apt-get install openjdk-8-jdk

3 编译步骤,在aosp源码根目录下执行命令

清理
make clobber

设置环境
source build/envsetup.sh

选择目标
lunch aosp_arm-eng

编译代码
make -j4


模拟 Android 设备
emulator


如果提示:emulator: command not found
设置如下
$source build/envsetup.sh
$set_stuff_for_environment

https://source.android.com/setup/build/building

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2021-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-06-20
  • 2021-11-17
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案