简体   繁体   English

Android INSTALL_FAILED_INSUFFICIENT_STORAGE

[英]Android INSTALL_FAILED_INSUFFICIENT_STORAGE

I know that this is a quite common issue in android development, but the thing is that I do not have an SD card on my android device, so when I write android:installLocation="preferExternal" in my manifest, I get Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE].我知道这是 android 开发中一个很常见的问题,但问题是我的 android 设备上没有 SD 卡,所以当我在我的清单中写android:installLocation="preferExternal"时,我得到失败 [INSTALL_FAILED_MEDIA_UNAVAILABLE ]。 Any idea how to fix it without SD card?知道如何在没有 SD 卡的情况下修复它吗?

You can declare installLocation="auto", which means that your application may be installed on the external storage, but you don't have a preference of install location.您可以声明 installLocation="auto",这意味着您的应用程序可能安装在外部存储上,但您没有安装位置的偏好。 You have enough memory on your device?你的设备有足够的内存吗? I know my phone won't let me install from play store even if I have 400mb and app takes up 20mb.我知道我的手机不会让我从 Play 商店安装,即使我有 400mb 并且应用程序占用 20mb。 It needs some free space for some reason.由于某种原因,它需要一些可用空间。

It's quite a common thing, just free up some more space and you should be fine.这是很常见的事情,只要腾出更多空间就可以了。

I had the same issue.我遇到过同样的问题。 Fixed it with simple restarting of my Android mobile device ('LG L70')通过简单重启我的 Android 移动设备 ('LG L70') 修复它

Windows Command line: Windows 命令行:

d:\>adb -s LGL70 install myapp.apk
[100%] /data/local/tmp/myapp.apk
        pkg: /data/local/tmp/myapp.apk
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]

After restart the device:重启设备后:

d:\>adb -s LGL70 install myapp.apk
[100%] /data/local/tmp/myapp.apk
        pkg: /data/local/tmp/myapp.apk
Success

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM