Android Emulator starts but Eclipse doesn#39;t recognize it(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 无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Emulator 启动但 Eclipse 无法识别


- 如何使用WebFilter实现授权头检查 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01