【问题标题】:android emulator cannot run my applications. its starts the emulator but doesnt run the programandroid 模拟器无法运行我的应用程序。它启动模拟器但不运行程序
【发布时间】:2011-04-26 13:28:39
【问题描述】:

这是控制台窗口的输出:

[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分钟。是我的电脑还是在模拟器上启动应用程序总是那么慢?

【问题讨论】:

  • 您使用哪个 API 用于应用程序?,模拟器在 API-8 即 Android2.2 上运行

标签: android eclipse android-emulator adt


【解决方案1】:

您是否尝试过更改 ADB 连接超时?默认值为 5000,将其更改为 10000 可以有更多时间尝试安装上述软件包,它对我有用。 为此,请转到 window->Preferences->Android->DDMS。

【讨论】:

    【解决方案2】:

    您是否在 default.properties 中设置了 API 级别?如果没有,请尝试添加target=android-8

    另外,作为旁注,听起来您每次想要测试时都在重新部署模拟器。您可以启动模拟器一次,然后根据需要将应用程序重新部署到它。

    【讨论】:

      【解决方案3】:

      检查这个线程。

      Honeycomb preview - can not install my app on emulator under Eclipse

      答案 2 对我来说效果很好,即从 AVD 管理器中单独启动 AVD > 开始,当它显示 Home 然后运行您的应用程序

      【讨论】:

        猜你喜欢
        • 2014-12-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-11-21
        • 1970-01-01
        • 1970-01-01
        • 2011-10-27
        • 1970-01-01
        相关资源
        最近更新 更多