---
title: "ERROR: the user data image is used by another emulator. aborting"
author: "logger"
date: "2010-12-10T10:37:31Z"
tags: []
categories: ["移动开发"]
slug: "error-the-user-data-image-is-used-by-another-emulator-aborting"
draft: false
lastmod: "2010-12-10T10:37:31Z"
id: 838318
url: "https://logger.iteye.com/blog/838318"
---

问题原因：avd的加锁机制使然。 .lock是加锁，如果程序崩溃或者不是正常退出等原因导致无法清除这些以.lock结尾的文件夹，就会出现这个问题，也就是这个avd的锁没有被释放，导致avd　manager以为这个avd正在使用当中。他会默认锁定该模拟器还是在运行，资源被占有了。

解决：
1。winXP：

C/Documents and Settings / 用户 / .android /的AVD / *设备* / (比如我的目录是：C:\Documents and Settings\Administrator\.android\avd\android2.0.avd)
然后删去以.lock结尾的文件夹就行(我简单解释下为什么要删除这些文件呢，其实.lock是加锁，如果程序崩溃等原因导致无法清除这些以.lock结尾的文件夹，就会出现这个问题，也就是这个avd的锁没有被释放，导致avd　manager以为这个avd正在使用当中。)

2/。win7：

C/用户/user/.android/avd/找到该目录下与模拟器对应的avd，然后删除其中的.lock文件即可。