---
title: 配置开发环境
description: "1. 下载AOSP android-11.0.0_r48代码到android-11.0.0_r48文件夹。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcps/boostcph/instrucstreamengine/kunpengcpsinstruction_16_0028.html
sourcePath: /source/zh/kunpengcps/boostcph/instrucstreamengine/kunpengcpsinstruction_16_0028.html
indexId: 1fe92b5f88c2c8caf82100928014c9dc5ef8f053c2af708640999795cc73262885
---
# 配置开发环境

1. 下载AOSP android-11.0.0_r48代码到android-11.0.0_r48文件夹。
  1 2 3 4 cd android-11.0.0_r48 repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r48 repo sync -j8 repo start android-11.0.0_r48 --all

2. 编译AOSP。
  1 2 3 4 cd android-11.0.0_r48 source build/envsetup.sh lunch aosp_arm64-eng make

3. 在AOSP的目录下建一个目录存放需编译的代码。
  1 2 cd android-11.0.0_r48 mkdir code
