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 target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)