简体   繁体   English

Android INSTALL_FAILED_INSUFFICIENT_STORAGE错误

[英]Android INSTALL_FAILED_INSUFFICIENT_STORAGE error

I have looked through at least a dozen or so posts on this website but yet no one has been able to figure this problem out. 我浏览了至少约十个该网站上的帖子,但没人能解决这个问题。 I keep getting the INSTALL_FAILED_INSUFFICIENT_STORAGE error when trying to test an app on a real device. 尝试在真实设备上测试应用程序时,我不断收到INSTALL_FAILED_INSUFFICIENT_STORAGE错误。 Restarting the device and/or uninstalling then reinstalling the app works FOR ONLY ONE TEST RUN. 重新启动设备和/或卸载然后重新安装该应用程序只能进行一次测试。 After that, the error pops right back up. 之后,错误会立即弹出。 I'm not looking for a solution for an emulated device, and my device has 4.27GB free space so that's not an issue either. 我没有在寻找针对模拟设备的解决方案,并且我的设备具有4.27GB的可用空间,所以这也不是问题。 I just need a fix for this problem without having to keep restarting the device/uninstalling the app. 我只需要解决此问题,而不必继续重新启动设备/卸载应用程序。

Also, I've tried the whole android:installLocation="preferExternal" method in the manifest and that does not work. 此外,我尝试了android:installLocation="preferExternal"的整个android:installLocation="preferExternal"方法,但该方法不起作用。

EDIT: Here is my manifest: 编辑:这是我的清单:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.*****.*****"
    android:installLocation="preferExternal"
    android:versionCode="2"
    android:versionName="1.0.1" >

The rest of my manifest is just the <uses-sdk> tag and <activity> tags. 我清单的其余部分只是<uses-sdk>标签和<activity>标签。 Sorry for the poorly formatted code, for some reason tabbing within a text box doesn't work on this website for me. 很抱歉,格式错误的代码,由于某种原因,在文本框中进行制表对我来说不适用于该网站。

EDIT: All I'm asking for (as well as anyone else who has asked this question on this site) is a solution FOR ACTUAL DEVICES that have PLENTY OF FREE SPACE and NO SD CARD SLOT. 编辑:我所要的(以及在此网站上提出这个问题的其他任何人)都是针对具有大量免费空间和无SD卡插槽的实际设备的解决方案。 It seems no one on this site has a solution for what I feel is the most common scenario for this problem. 我觉得这是最常见的解决方案,似乎该网站上没有人提供解决方案。

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.

相关问题 Android INSTALL_FAILED_INSUFFICIENT_STORAGE - Android INSTALL_FAILED_INSUFFICIENT_STORAGE Android模拟器INSTALL_FAILED_INSUFFICIENT_STORAGE错误 - Android emulator INSTALL_FAILED_INSUFFICIENT_STORAGE error 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE Android Phonegap - Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Android phonegap Android:安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Android Studio [Install_Failed_Insufficient_Storage] - Android Studio [Install_Failed_Insufficient_Storage] 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE INSTALL_FAILED_INSUFFICIENT_STORAGE - INSTALL_FAILED_INSUFFICIENT_STORAGE 如何增加 Android 模拟器的存储空间? (INSTALL_FAILED_INSUFFICIENT_STORAGE) - How to increase storage for Android Emulator? (INSTALL_FAILED_INSUFFICIENT_STORAGE) adb安装失败,错误为“INSTALL_FAILED_INSUFFICIENT_STORAGE” - adb install fails with error 'INSTALL_FAILED_INSUFFICIENT_STORAGE' 增加Android模拟器的存储空间? (安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE) - Increase the storage space in Android emulator? (Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM