无法在设备“emulator-5554”上安装 apk:超时

发布于 2024-10-09 09:51:08 字数 256 浏览 0 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

万人眼中万个我 2024-10-16 09:51:08

在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 .

彡翼 2024-10-16 09:51:08

不要在目录名称中使用空格。如果您的文件位于此类目录中(例如,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.

£冰雨忧蓝° 2024-10-16 09:51:08

关闭模拟器并再次启动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.

时光无声 2024-10-16 09:51:08

adb Kill-serveradb star-server 问题已解决。

更改超时窗口 ->首选项->安卓-> DDMS->增加超时值

adb kill-server and adb star-server problem solved.

change time out WINDOW -> Preferences -> android -> DDMS -> increase the timeout value

孤星 2024-10-16 09:51:08

对我来说,我的手机不喜欢 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文