模拟器运行良好,但我的应用程序运行不正常
当我选择“运行”|作为 Android 应用程序,模拟器最终会显示并且看起来很好,只是我的应用程序不在其中运行。我收到错误消息:“无法在设备‘emulator-5554’上安装WhereAreYou.apk:找不到设备”
未找到哪个设备?模拟器运行正常吗?
When I select Run | As Android app, the Emulator eventually displays and seems fine, except that my app does not run inside it. I get the err msg: "Failed to install WhereAreYou.apk on device 'emulator-5554': device not found"
Which device was not found? The emulator ran fine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有一些清晰、直接的方法可以让其运行,而无需具备相当熟练的 Android 开发技能,那就太好了。
无论如何,我按照建议下载了 installer_r15-windows.exe 并运行了该安装程序。
然后从 Eclipse“ADT Plugin for Eclipse”开始,
第一件事就是进入 Window ->首选项->安卓-> DDMS 并将“ADB 连接超时(毫秒)”设置为 500000
使用 AVD 管理器(从窗口菜单)启动模拟器似乎也有很大帮助。并随机进入platform-tools目录并执行“adb Kill-server”和“adb start-server”。
然后在 Eclipse 中使用上下文菜单中的“Run As -> Android Application”,希望您能得到以下结果:
然后稍等片刻,您的消息最终会出现在模拟器中!
但是,如果运行一个简单的 HelloWorld 应用程序如此困难,那么还值得继续使用 Android 吗?
It would be nice if there were some clear and straightforward way of getting this to run without having to be reasonably skilled in Android development.
Anyway I downloaded the installer_r15-windows.exe as recommended and ran that installer.
Then from Eclipse "ADT Plugin for Eclipse"
First thing then was to go into Window -> Preferences -> Android -> DDMS and set the "ADB connection time out(ms)": to 500000
It also seems to help greatly to use the AVD Manager (from Window menu) to start the emulator. And randomly go to the platform-tools directory and execute "adb kill-server" and "adb start-server".
Then in Eclipse use "Run As -> Android Application" from context menu and hopefully you get the following:
Then wait a while and your message final appears in the emulator!
But if it is so difficult to run a simple HelloWorld app, is it worth perservering with Android?