Honeycomb 预览 - 无法在 Eclipse 下的模拟器上安装我的应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4822154/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Honeycomb preview - can not install my app on emulator under Eclipse
提问by Andrey Novikov
Just updated SDK and SDK tools in Eclipse, tried to run my application on Honeycomb and got the following:
刚刚在 Eclipse 中更新了 SDK 和 SDK 工具,尝试在 Honeycomb 上运行我的应用程序并得到以下结果:
[2011-01-28 00:22:12 - Androzic] Uploading Androzic.apk onto device 'emulator-5554'
[2011-01-28 00:22:13 - Androzic] Installing Androzic.apk...
[2011-01-28 00:24:19 - Androzic] Failed to install Androzic.apk on device 'emulator-5554!
[2011-01-28 00:24:19 - Androzic] (null)
[2011-01-28 00:24:19 - Androzic] Failed to install Androzic.apk on device 'emulator-5554': EOF
[2011-01-28 00:24:19 - Androzic] com.android.ddmlib.InstallException: EOF
[2011-01-28 00:24:19 - Androzic] Launch canceled!
Other avd's are operating normally. Has anyone succeeded? What am I doing wrong?
其他 avd 运行正常。有人成功了吗?我究竟做错了什么?
回答by Ton van Overbeek
Got the same message. Turned out the app was installed and I could launch it from the emulator Applications screen. The Honeycomb emulator is slow and my guess is the launch command times out before the emulator is ready.
收到同样的信息。结果发现应用程序已安装,我可以从模拟器应用程序屏幕启动它。Honeycomb 模拟器很慢,我猜是启动命令在模拟器准备好之前就超时了。
回答by Appu
Even I was facing the same issue. Thanks to Overbeek for the hint,
甚至我也面临着同样的问题。感谢 Overbeek 的提示,
Yes "Ton Van Overbeek" is right.Honeycomb emulator is slow that's why you will get error like
是的“Ton Van Overbeek”是对的。Honeycomb 模拟器很慢,这就是为什么你会得到这样的错误
"Failed to install .apk on device 'emulator-5554': EOF com.android.ddmlib.InstallException: EOF Launch canceled!"
“无法在设备 'emulator-5554' 上安装 .apk:EOF com.android.ddmlib.InstallException:EOF Launch 已取消!”
Solution : Try to run the emulator separately from AVD Manager, Then after its up and running and you were able to see the Home screen, at that time you can Run you application from Eclipse IDE, targeting to this specific Emulator.Your app will run smoothly.
解决方案:尝试从 AVD 管理器单独运行模拟器,然后在它启动并运行后您可以看到主屏幕,此时您可以从 Eclipse IDE 运行您的应用程序,针对此特定的模拟器。您的应用程序将运行顺利。
回答by BSBhat
I Got the same issue and i could resolve it.
我遇到了同样的问题,我可以解决它。
It has created my program as an app in the emulator. So after this error comes you please directly go to the emulator and check for your app there and run it (click on it). It will run smoothly.
它已将我的程序创建为模拟器中的应用程序。因此,在出现此错误后,请直接转到模拟器并在那里检查您的应用程序并运行它(单击它)。它会顺利运行。
Hope this helps.
希望这可以帮助。
回答by glidester
I had same issue.
我有同样的问题。
Turned out that I had not downloaded all the required packages in the AVD Manager.
原来我没有在 AVD 管理器中下载所有必需的包。
Not sure if these are all required but this is what I downloaded to make it work:
不确定这些是否都是必需的,但这是我下载以使其工作的内容:
- Android SDK Tools, rev 9
- SDK Platform Android Honeycomb Preview, rev 1
- SDK Platform Android 2.3.1, API 9, rev 2
- Samples for SDK API Honeycomb Preview, rev 1
- Samples for SDK API 9, rev 1
- Documentation for Android 'Honeycomb' Preview SDK, rev 1
- Android SDK 工具,修订版 9
- SDK 平台 Android Honeycomb 预览版,修订版 1
- SDK 平台 Android 2.3.1,API 9,修订版 2
- SDK API Honeycomb Preview 的示例,修订版 1
- SDK API 9,修订版 1 的示例
- Android 'Honeycomb' 预览版 SDK 的文档,修订版 1
回答by guness
Increasing emulator ram size from 512 to 1024 solved it...
将模拟器内存大小从 512 增加到 1024 解决了这个问题......
回答by ssrp
Had the same issue,
有同样的问题,
If your application is installed previously go to
如果您的应用程序之前已安装,请转到
Settings > Applications > Manage Applications > Uninstall your app from the emulator
设置 > 应用程序 > 管理应用程序 > 从模拟器卸载您的应用程序
Then
然后
Right click on your project folder > run as > android application
右键单击您的项目文件夹 > 运行方式 > android 应用程序
If your app was not installed previously
如果您的应用之前未安装
Restart Eclipse and clean your project and run like before. In my case I solved the problem.
重新启动 Eclipse 并清理您的项目并像以前一样运行。就我而言,我解决了这个问题。
回答by Che
Restart your system.. It will be solved. But it is temporary solution.
重启你的系统。。它会解决的。但这是临时解决方案。