无法在设备'emulator-5554上安装HelloAndroid.apk!

时间:2011-05-13 15:14:44

标签: android

我看过有关此问题的问题。据我所知,模拟器需要几分钟才能自行配置并启动。但是如果我得到了具体的错误:

[2011-05-13 08:41:36 - HelloAndroid] ------------------------------
[2011-05-13 08:41:36 - HelloAndroid] Android Launch!
[2011-05-13 08:41:36 - HelloAndroid] adb is running normally.
[2011-05-13 08:41:36 - HelloAndroid] Performing com.santiapps.helloandroid.HelloAndroid activity launch
[2011-05-13 08:41:36 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-05-13 08:41:36 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-05-13 08:41:49 - Emulator] 2011-05-13 08:41:49.650 emulator[411:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2011-05-13 08:41:50 - Emulator] emulator: emulator window was out of view and was recentred
[2011-05-13 08:41:50 - Emulator] 
[2011-05-13 08:41:50 - HelloAndroid] New emulator found: emulator-5554
[2011-05-13 08:41:50 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2011-05-13 08:44:33 - HelloAndroid] WARNING: Application does not specify an API level requirement!
[2011-05-13 08:44:33 - HelloAndroid] Device API version is 12 (Android 3.1)
[2011-05-13 08:44:33 - HelloAndroid] HOME is up on device 'emulator-5554'
[2011-05-13 08:44:33 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2011-05-13 08:44:34 - HelloAndroid] Installing HelloAndroid.apk...
[2011-05-13 08:47:20 - HelloAndroid] Failed to install HelloAndroid.apk on device 'emulator-5554!
[2011-05-13 08:47:20 - HelloAndroid] (null)
[2011-05-13 08:47:22 - HelloAndroid] Launch canceled!
[2011-05-13 08:53:55 - HelloAndroid] ------------------------------
[2011-05-13 08:53:55 - HelloAndroid] Android Launch!
[2011-05-13 08:53:55 - HelloAndroid] adb is running normally.
[2011-05-13 08:53:55 - HelloAndroid] Performing com.santiapps.helloandroid.HelloAndroid activity launch
[2011-05-13 08:53:55 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-05-13 08:53:55 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-05-13 08:54:06 - Emulator] 2011-05-13 08:54:06.327 emulator[460:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2011-05-13 08:54:06 - Emulator] emulator: emulator window was out of view and was recentred
[2011-05-13 08:54:06 - Emulator] 
[2011-05-13 08:54:06 - HelloAndroid] New emulator found: emulator-5554
[2011-05-13 08:54:06 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2011-05-13 09:08:07 - Emulator] emulator: ERROR: unexpected qemud char. channel close

不是我的配置不好......?

8 个答案:

答案 0 :(得分:46)

等待模拟器完全设置然后测试您的应用。另外,我会让AVD打开,所以每次运行应用程序时都不必等待这么久。

当显示红色书写时,请勿关闭任何内容 - 将其保留在那里然后再次按下运行按钮。工作就像一个魅力。

答案 1 :(得分:8)

我遇到了同样的问题,但我尝试更改ADB连接超时。我认为它默认为5000毫秒,我把我改为10000毫秒来解决这个问题。如果您在Eclipse中,可以通过浏览Window - >来完成此操作。首选项然后它在Android下的DDMS中。

答案 2 :(得分:3)

尝试此操作:在AVD Manager中创建另一个模拟器,并尝试在新模拟器中运行您的应用程序。 希望这可以帮到你

答案 3 :(得分:1)

您可能需要增加设备柱塞尺寸。至少对于一些Honeycomb AVD,默认值256是不够的,并且导致我同样的问题。尝试至少512。

答案 4 :(得分:0)

转到窗口和首选项并增加ADB连接超时(ms),默认为500。在我的情况下,还可以将基本本地调试器端口更改为9000以上。

答案 5 :(得分:0)

See Related post

这适用于我的Linux:

  • 运行模拟器(等待加载模拟器的主屏幕)
  • 点击窗口> Open Perspective> DDMS
  • 在“设备面板”中,点击下拉菜单>重置adb
  • 运行项目

答案 6 :(得分:0)

Valen回答是正确的,但很高兴知道何时开始运行应用当不能启动应用时。打开设备透视图。下次要运行应用时,请首先打开“Android虚拟设备管理器”'并运行你的avd然后点击设备透视图并逐个观察你的模拟器处理...一旦完成(它不是很快你必须等待..但至少你有一些想法发生了什么... ..进度条将是这个地方的理想选择),点击你的项目并运行作为Android应用程序。在设备透视图中,将显示另一个进程,其中包含应用程序包的名称。一旦发生这种情况,您的应用程序就会在设备上运行,并且可以对其进行测试。

答案 7 :(得分:0)

从DMOZ重新启动ADB服务器 或参考本教程How to solve Failed to install .apk