2

当我尝试启动应用程序以在模拟器中对其进行测试时,模拟器会打开,然后它会安装应用程序(根据 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!

编辑:模拟器适用于我的其他应用程序。

4

1 回答 1

2

首先,验证您的Run 配置的Launch Action是否符合您的预期(Launch Default Activity 或 Launch a specific Activity)。

如果一切看起来都很好,但 Activity 没有启动,你可以尝试从命令行执行它:

$ adb shell am start -n your.package/your.package.YourActivity
于 2012-05-14T04:54:31.930 回答