Android模拟器根本没有启动

Android emulator not starting at all(Android模拟器根本没有启动)
本文介绍了Android模拟器根本没有启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

今天我尝试从 Eclipse 中启动我的 Android 应用程序,但没有任何反应.昨天一切正常.我尝试了一些东西,比如 adb kill-server、adb-start-server.在某些时候,我收到用户数据图像被另一个模拟器使用"错误,所以我开始删除 avd 图像中的 .lock 文件夹,但无济于事.

Today I tried to launch my Android app from within eclipse but nothing happened. Everything worked fine yesterday. I tried a few things like adb kill-server, adb-start-server. At some point I got the "user data image is used by another emulator" error, so I went about deleting the .lock folders in the avd image but to no avail.

我创建了一个新的 avd,但模拟器甚至没有从这个图像开始.我试着用

I created a new avd and the emulator doesnt even start with this image. I tried to start it with

emulator -avd avdname

->什么都没有.没有错误.emulator.exe 在任务管理器中运行.

->nothing. No error. emulator.exe is running in Taskmanager.

Windows 7Android SDK 工具,修订版 7

Windows 7 Android SDK Tools, revision 7

更新:现在我知道什么时候出现错误了

Update: Now I know when I get the error

模拟器:错误:用户数据图像被另一个模拟器使用.中止

emulator: ERROR: the user data image is used by another emulator. aborting

在 emulator.exe 已经挂在 Taksmanager 中之后,我尝试再次运行应用程序.

it's when I try to run the application again after the emulator.exe is already dangling in Taksmanager.

更新:等了 20 分钟.emulator.exe 只是以 00:00:00 cpu 时间坐在那里.

Update: waited for 20mins. emulator.exe is just sitting there with 00:00:00 cpu time.

推荐答案

当你说昨天一切正常"时,你应该先问问自己从那以后你发生了哪些变化;你有没有安装任何可能干扰模拟器的东西?

When you say, "Everything worked fine yesterday", you should first ask yourself what you have changed since; have you installed anything that could interfere with the emulator?

就我个人而言,我会下载一个新的 Android SDK 副本,从您的 PATH 中删除对当前安装版本的引用,然后添加新的.

Personally, I would download a fresh copy of the Android SDK, remove the reference to the currently installed version from your PATH, and add the new one.

我应该认为这会解决您的问题(至少,能够启动 AVD).

I should think that would solve your issue (at least, being able to start an AVD that is).

还有一点需要注意的是,AVD 有时启动速度很慢.在我的一台机器上,启动最多需要 7 分钟.所以试试emulator -avd avdname,然后去泡杯咖啡,看看你回来时它是否有效:)

One more thing to note is that the AVD can sometimes be quite slow to startup. On one of my machines, it has taken up to 7 minutes to boot up. So try emulator -avd avdname, then go make a coffee and see if it works when you return :)

祝你好运!

这篇关于Android模拟器根本没有启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How To Create a Rotating Wheel Control?(如何创建转轮控件?)
How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
iOS: How to run a function after Device has Rotated (Swift)(iOS:设备旋转后如何运行函数(Swift))
iOS 8 Rotation Methods Deprecation - Backwards Compatibility(iOS 8 旋转方法弃用 - 向后兼容性)
Screen orientation lock(屏幕方向锁定)
Strange behavior with android orientation sensor(android方向传感器的奇怪行为)