无法在设备“emulator-5554”上安装 apk:超时
我是 Android 开发新手。我尝试在此文件夹中运行 LunarLander 项目(根据示例创建新项目) C:\Program Files\Android\android-sdk-windows\samples\android-9\LunarLander
但我收到此错误: 无法在设备“emulator-5554”上安装 LunarLander.apk:超时
但如果我将其复制到 C:\LunarLander,它运行正常。我猜路径有问题。我该如何修复或排除此问题?
I am new to Android development. I tried to run LunarLander project (create new project based on sample) in this folder
C:\Program Files\Android\android-sdk-windows\samples\android-9\LunarLander
But I got this error:
Failed to install LunarLander.apk on device 'emulator-5554': timeout
But if I copied it out to C:\LunarLander, it runs fine. I guess there is something wrong with the path. How do I fix or troubleshoot this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在eclipse中,你可以增加超时时间。在日食中,
转到WINDOW--> Prefrences--> android--> DDMS>增加超时值。就我而言,它是 5000 &我将其增加到 10000 &它对我有用。
In eclipse, you can increase the timeout. In Eclipse,
Go to WINDOW-->Prefrences-->android-->DDMS>increase the timeout value. In my case it was 5000 & i incresed it to 10000 & it worked for me .
不要在目录名称中使用空格。如果您的文件位于此类目录中(例如,
C:\Program Files\
中的内容),请将它们复制到另一个没有空格的位置。Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff inside of
C:\Program Files\
), copy them to another spot that does not have spaces.关闭模拟器并再次启动APP。这样就可以解决这个问题。您可能已经将模拟器保持打开状态相当长一段时间而没有进行任何活动。
重新启动模拟器为我解决了这个问题。
Close the emulator and launch the APP again. That would fix the issue. You might have kept the emulator open for quite some time without doing any activity.
Restarting the emulator fixed this issue for me.
adb Kill-server
和adb star-server
问题已解决。更改超时窗口 ->首选项->安卓-> DDMS->增加超时值
adb kill-server
andadb star-server
problem solved.change time out WINDOW -> Preferences -> android -> DDMS -> increase the timeout value
对我来说,我的手机不喜欢 USB3.0 端口。我将其移至 USB 2.0 端口,一切正常。
For me my phone didn't like the USB3.0 port. I moved it to a USB 2.0 port and everything worked fine.