Android Emulator 启动但 Eclipse 无法识别

Android Emulator starts but Eclipse doesn#39;t recognize it(Android Emulator 启动但 Eclipse 无法识别)
本文介绍了Android Emulator 启动但 Eclipse 无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一般规则,一切正常,但有时 Eclipse 或我的 Android 模拟器决定成为一个混蛋并拒绝工作.

As a general rule, everything works fine, but then sometimes either Eclipse or my Android emulator decides to be a jerk and refuses to work.

我在 Eclipse 中打开 AVD 管理器.我选择我想要的 AVD,然后单击开始.模拟器启动并经历了漫长的引导过程.它终于完成了启动,然后由于某种原因,它立即重新启动并再次经历了漫长的启动过程.一旦它第二次启动,Eclipse 就会失去对它的跟踪.它不再在设备"选项卡中列出,我无法安装我的应用程序或在该模拟器上运行它.如果我杀死模拟器并尝试重新启动它,那么我会得到完全相同的行为.这令人难以置信的沮丧.

I open the AVD Manager in Eclipse. I choose which AVD I want and click Start. The emulator starts up and it goes through the loooong process of booting. It finally finishes booting and then for some reason, it immediately reboots and goes through the looong process of booting again. Once it boots the second time, Eclipse loses track of it. It is no longer lists in the Devices tab and I can't install my app or run it on that emulator. If I kill the emulator and try to start it over, then I get the exact same behavior. It's incredibly frustrating.

控制台中没有任何消息可以解释该行为.知道为什么会这样吗?

There are no messages happening in the console to explain the behavior. Any idea why this is happening?

推荐答案

这是 adb 在模拟器之前启动时的已知问题.我不知道真正的原因,但一个快速的解决方法是在命令提示符下重新启动 adb(在模拟器运行的情况下)

That's a known issue when adb starts before the emulator. I don't know the real reason, but a quick workaround is to restart adb in the command prompt (with the emulator running)

> adb kill-server
> adb start-server

现在,

> adb devices

将返回模拟器,Eclipse 将能够安装应用程序.

will return the emulator and Eclipse will be able to install the app.

这篇关于Android Emulator 启动但 Eclipse 无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

VertX 3.9.7 when i receive the form quot;throw exceptionquot; Size exceed allowed maximum capacityquot;(VertX 3.9.7收到表单时抛出异常SIZE超出允许的最大容量QUOT;)
Android This feature requires ASM7(Android此功能需要ASM7)
JDK11 Upgrade Fails - ClassNotFoundException jdk.internal.ref.Cleaner(JDK11升级失败-ClassNotFoundException jdk.inder.ref.Cleaner)
How to make Eclipse compile patched modules on JDK 9+ by passing the --patch-module javac option to my project compiler? (see pic)(如何通过向我的项目编译器传递--patch-MODULE javac选项,让Eclipse在JDK 9+上编译打了补丁的模块?(见图))
JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)(JavaFX模块化应用程序,java.lang.mode.FindException:未找到模块javafx.Controls(Java 11,IntelliJ))
Cannot resolve symbol Theme.MaterialComponents.Light.NoActionBar (Android Studio)(无法解析符号Theme.MaterialComponents.Light.NoActionBar(Android Studio))