这是控制台窗口的输出:
[2011-04-26 13:49:08 - Snake] ------------------------------
[2011-04-26 13:49:08 - Snake] Android Launch!
[2011-04-26 13:49:08 - Snake] adb is running normally.
[2011-04-26 13:49:08 - Snake] Performing com.example.android.snake.Snake activity launch
[2011-04-26 13:49:08 - Snake] Automatic Target Mode: launching new emulator with compatible AVD 'avd_2.2'
[2011-04-26 13:49:08 - Snake] Launching a new emulator with Virtual Device 'avd_2.2'
[2011-04-26 13:49:13 - Snake] New emulator found: emulator-5554
[2011-04-26 13:49:13 - Snake] Waiting for HOME ('android.process.acore') to be launched...
[2011-04-26 13:54:38 - Snake] WARNING: Application does not specify an API level requirement!
[2011-04-26 13:54:38 - Snake] Device API version is 8 (Android 2.2)
[2011-04-26 13:54:38 - Snake] HOME is up on device 'emulator-5554'
[2011-04-26 13:54:38 - Snake] Uploading Snake.apk onto device 'emulator-5554'
[2011-04-26 13:54:38 - Snake] Installing Snake.apk...
[2011-04-26 13:58:55 - Snake] Failed to install Snake.apk on device 'emulator-5554!
[2011-04-26 13:58:55 - Snake] (null)
[2011-04-26 13:59:01 - Snake] Failed to install Snake.apk on device 'emulator-5554': null
[2011-04-26 13:59:01 - Snake] com.android.ddmlib.InstallException
[2011-04-26 13:59:01 - Snake] Launch canceled!
从日志开始到结束,可以看到大约需要10分钟。是我的电脑还是在模拟器上启动应用程序总是那么慢?
最佳答案
您是否尝试过更改 ADB 连接超时?默认值为 5000,将其更改为 10000 可提供更多时间来尝试安装上述软件包,它对我有用。 为此,请转到窗口->首选项->Android->DDMS。
关于android 模拟器无法运行我的应用程序。它启动模拟器但不运行程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5791076/