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

1. 下载AOSP android-11.0.0_r48代码到android-11.0.0_r48文件夹。

```
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。

```
cd android-11.0.0_r48
source build/envsetup.sh
lunch aosp_arm64-eng
make
```


3. 在AOSP的目录下建一个目录存放需编译的代码。

```
cd android-11.0.0_r48
mkdir code
```
