运行模拟器时遇到问题

发布于 2024-12-22 15:49:12 字数 1092 浏览 1 评论 0原文

如果我在模拟器已准备好运行时运行应用程序,则应用程序不会在现有 AVD 上运行,而是会启动一个新的 AVD。

[2011-12-22 18:03:15 - Report_v6_2] ------------------------------
[2011-12-22 18:03:15 - Report_v6_2] Android Launch!
[2011-12-22 18:03:15 - Report_v6_2] adb is running normally.
[2011-12-22 18:03:15 - Report_v6_2] Performing mast.avalons.ReportActivity activity launch
[2011-12-22 18:03:15 - Report_v6_2] Automatic Target Mode: Preferred AVD 'Acer' is not available. Launching new emulator.
[2011-12-22 18:03:15 - Report_v6_2] Launching a new emulator with Virtual Device 'Acer'
[2011-12-22 18:03:28 - Report_v6_2] New emulator found: emulator-5554
[2011-12-22 18:03:28 - Report_v6_2] Waiting for HOME ('android.process.acore') to be launched ...
[2011-12-22 18:04:46 - Report_v6_2] emulator-5554 disconnected! Cancelling 'mast.avalons.ReportActivity activity launch'!
[2011-12-22 18:20:16 - Report_v6_2] ------------------------------
[2011-12-22 18:20:16 - Report_v6_2] Android Launch!
[2011-12-22 18:20:16 - Report_v6_2] adb is running normally.

我使用 Windows 7、Eclipse Indigo、最新版本 adt、adb、sdk

If I run my application when there is allready an emulator running, the applications isn't run on the existing AVD, but a new one is started.

[2011-12-22 18:03:15 - Report_v6_2] ------------------------------
[2011-12-22 18:03:15 - Report_v6_2] Android Launch!
[2011-12-22 18:03:15 - Report_v6_2] adb is running normally.
[2011-12-22 18:03:15 - Report_v6_2] Performing mast.avalons.ReportActivity activity launch
[2011-12-22 18:03:15 - Report_v6_2] Automatic Target Mode: Preferred AVD 'Acer' is not available. Launching new emulator.
[2011-12-22 18:03:15 - Report_v6_2] Launching a new emulator with Virtual Device 'Acer'
[2011-12-22 18:03:28 - Report_v6_2] New emulator found: emulator-5554
[2011-12-22 18:03:28 - Report_v6_2] Waiting for HOME ('android.process.acore') to be launched ...
[2011-12-22 18:04:46 - Report_v6_2] emulator-5554 disconnected! Cancelling 'mast.avalons.ReportActivity activity launch'!
[2011-12-22 18:20:16 - Report_v6_2] ------------------------------
[2011-12-22 18:20:16 - Report_v6_2] Android Launch!
[2011-12-22 18:20:16 - Report_v6_2] adb is running normally.

I use Windows 7, Eclipse Indigo, last versions adt, adb,sdk

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

伴梦长久 2024-12-29 15:49:12

问:这个曾经在您的 Windows 7 PC 上运行过吗?

建议:

http://androidforums.com/application-development/5398-android -help-emulator-5554-disconnected.html

  • 解决方案:在诸如“emulator-5554已断开连接!”之类的消息之前
    取消“转到Eclipse IDE-->窗口-->显示视图-->设备-->
    查看菜单 -->重置 adb

Q: Has this ever worked on your Windows 7 PC?

Suggestion:

http://androidforums.com/application-development/5398-android-help-emulator-5554-disconnected.html

  • solution : before message like "emulator-5554 disconnected!
    Cancelling " go to Eclipse IDE-->window--> Show Views --> device-->
    view menu --> reset adb
一张白纸 2024-12-29 15:49:12

这是由于您的项目属性未设置为手动运行并且出于某种原因(SDK 或目标版本)模拟器在新实例中打开而导致的。

解决方法:
右键单击您的项目 -->运行方式 -->运行配置

然后,确保相关项目是在左侧选择的项目,并且名称位于顶部。

然后您将在顶部看到“目标”:
在此处输入图像描述

选择手动应该允许您选择正在运行的模拟器。如果没有,请确保您的项目 SDK 设置为您已安装的 SDK 版本或兼容的范围:

<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="14" />

希望有帮助!

This is caused when your project properties are not setup to run manually and for whatever reason (SDK or Target version) the emulator opens in a new instance.

To Solve:
Right Click your Project --> Run As --> Run Configurations

Then, make sure the Project in question is the one selected on the left and the Name is on the top.

You will then see 'Target' at the top:
enter image description here

Choosing Manual should allow you to choose the running emulator. If not, make sure your project SDK is set with an SDK version you have installed or a range that is compliant:

<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="14" />

Hope that helps!

呆萌少年 2024-12-29 15:49:12

试试这个!也许这可以回答您的疑问。 https://stackoverflow.com/a/2049798/1051682
另外,如果您可以使用 Android x86 尝试一下,可能会解决您的问题。

嗯......看看第一个问题陈述,其中“当一个已经在模拟器中运行时尝试打开新应用程序(在同一个模拟器中)......”上面提到的链接似乎是相对的,认为它可能是类似的问题。如果存在这个问题,接下来尝试 Android x86。无论如何。 “运行方式”会弹出“Android 设备选择器”,您可以在其中选择已经运行的模拟器/设备。我无法粘贴图像,因为是新的,但希望这会有所帮助。谢谢!

Try this! Possibly this could answer your query. https://stackoverflow.com/a/2049798/1051682
Also, if you can give it a try using Android x86, may resolve your issues.

Hmm...Looking at the first problem statement where "trying to open new app (in same emulator) when one is already running in emulator..." above mentioned link seemed to be relative thinking it could be similar issue. And if that problem exist, trying Android x86 comes next. Anyways. "Run as" pops up "Android Device Chooser" wherein you can select the already running emulator/device. I am unable to paste image, being new, but hope this helps. Thanks!

厌倦 2024-12-29 15:49:12

我陷入了第一个障碍 - Hello World 应用程序。
我一直看到调试器正在连接的 emulator-5554 出现;在从 DDMS 中挖掘模拟器的包名称后,我注意到了“bluestacks”。我安装了 Bluestacks 模拟器。在 Mac 上,我转到 Library>Bluestacks Player 并卸载 - 解决了问题。

I got stuck at the first hurdle - The Hello World app.
I kept seeing an emulator-5554 appear which my debugger was connecting to; after a bit of digging in the package names of the emulator from within DDMS, I noticed 'bluestacks'. I had Bluestacks emulator installed. On Mac i went to Library>Bluestacks Player and uninstalled - solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文