---
title: "linux下部署android模拟器"
author: "Goldice"
date: "2015-07-28T17:20:45Z"
tags: []
categories: ["开源软件"]
slug: "linux-android"
draft: false
lastmod: "2015-07-28T17:20:45Z"
id: 2230937
url: "https://jdoc.iteye.com/blog/2230937"
---

出于android测试需要，需要在linux机器上部署android模拟器环境，借助官网的文档，总结出如下步骤：

下载android ADT(包括android SDK和android Developer Tools)

```
wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
```

解压缩zip包，建立images目录

```
 unzip adt-bundle-linux-x86_64-20140702.zip; 
 cd adt-bundle-linux-x86_64-20140702/sdk/platforms/android-20/; 
 mkdir images; 
```

下载images, 将解压产物放入images

```
cd images; 
wget http://c3.cr173.com/soft3/sysimg_armv7a-15_r02.zip
unzip sysimg_armv7a-15_r02.zip; 
```

创建启动模拟器

```
android create avd -n test -t 1 -b default/armeabi
emulator -no-window -avd test
```

安装sdk

```
android list sdk --all
android update sdk -u --all --filter x (x为对应sdk版本的编号)
```