【问题标题】:Android Emulator Won't Start App on EclipseAndroid 模拟器不会在 Eclipse 上启动应用程序
【发布时间】:2012-05-21 12:40:07
【问题描述】:

当我尝试启动应用程序以在模拟器中对其进行测试时,模拟器会打开,然后它会安装应用程序(根据 LogCat),但它没有运行。我查看了应用程序,但它不存在。我尝试重新创建模拟器,从 AVD Manager 启动它,重置 ADB 等等。这是我启动模拟器时 LogCat 给我的:

[2012-05-13 20:25:23 - StickFigure] Launching a new emulator with Virtual Device 'Droid'
[2012-05-13 20:25:27 - Emulator] emulator: emulator window was out of view and was recentered
[2012-05-13 20:25:28 - Emulator] 
[2012-05-13 20:25:28 - StickFigure] New emulator found: emulator-5554
[2012-05-13 20:25:28 - StickFigure] Waiting for HOME ('android.process.acore') to be launched...
[2012-05-13 20:26:04 - StickFigure] HOME is up on device 'emulator-5554'
[2012-05-13 20:26:04 - StickFigure] Uploading StickFigure.apk onto device 'emulator-5554'
[2012-05-13 20:26:04 - StickFigure] Installing StickFigure.apk...
[2012-05-13 20:26:28 - StickFigure] Success!
[2012-05-13 20:26:28 - StickFigure] /StickFigure/bin/StickFigure.apk installed on device
[2012-05-13 20:26:28 - StickFigure] Done!

编辑:模拟器与我的其他应用程序配合得很好。

【问题讨论】:

标签: android eclipse android-emulator


【解决方案1】:

首先,验证运行配置启动操作是否符合您的预期(启动默认活动或启动特定活动)。

如果一切正常,但 Activity 没有启动,您可以尝试从命令行执行:

$ adb shell am start -n your.package/your.package.YourActivity

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-25
    • 1970-01-01
    • 1970-01-01
    • 2011-05-11
    • 1970-01-01
    相关资源
    最近更新 更多