运行模拟器时遇到问题
如果我在模拟器已准备好运行时运行应用程序,则应用程序不会在现有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
问:这个曾经在您的 Windows 7 PC 上运行过吗?
建议:
Q: Has this ever worked on your Windows 7 PC?
Suggestion:
这是由于您的项目属性未设置为手动运行并且出于某种原因(SDK 或目标版本)模拟器在新实例中打开而导致的。
解决方法:
右键单击您的项目 -->运行方式 -->运行配置
然后,确保相关项目是在左侧选择的项目,并且名称位于顶部。
然后您将在顶部看到“目标”:
选择手动应该允许您选择正在运行的模拟器。如果没有,请确保您的项目 SDK 设置为您已安装的 SDK 版本或兼容的范围:
希望有帮助!
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:
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:
Hope that helps!
试试这个!也许这可以回答您的疑问。 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!
我陷入了第一个障碍 - 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 withinDDMS
, I noticed 'bluestacks'. I had Bluestacks emulator installed. On Mac i went toLibrary>Bluestacks
Player and uninstalled - solved the problem.