简体   繁体   English

安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE

[英]Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

I get the error mentioned in the title when I run my app on the emulator. 当我在模拟器上运行我的应用程序时,我收到标题中提到的错误。 While creating it, I had given a sufficient space. 创造它时,我给了足够的空间。

How can you fix this? 你怎么解决这个问题?

My log file: 我的日志文件:

[2011-09-16 09:28:17 - Trivia] Performing nik.trivia.Splash activity launch
[2011-09-16 09:28:17 - Trivia] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'work'
[2011-09-16 09:28:17 - Trivia] Uploading Trivia.apk onto device 'emulator-5554'
[2011-09-16 09:30:54 - Trivia] Installing Trivia.apk...
[2011-09-16 09:30:56 - Trivia] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2011-09-16 09:30:56 - Trivia] Please check logcat output for more details.
[2011-09-16 09:30:56 - Trivia] Launch canceled!

you need to increase virtual memory of emulator 你需要增加模拟器的虚拟内存

How to increase virtual memory of emulator 如何增加模拟器的虚拟内存

\\emulator -avd "Emulator Name" -partition-size 500

after then try to install your apk 然后尝试安装你的apk

if any doubt then see all comment of this question 如有疑问,请查看此问题的所有评论

I work with the real device. 我使用真实设备。 Once I've got the same error. 一旦我得到同样的错误。 I had a lot of free space on SD card. 我在SD卡上有很多可用空间。 So you may see this error if you don't have enough internal memory. 因此,如果没有足够的内部存储器,您可能会看到此错误。 You should delete some program from the device or move it on SD card. 您应该从设备中删除某些程序或将其移动到SD卡上。 It solved my problem. 它解决了我的问题。 Thanks. 谢谢。

This error can be caused by an application that has previously produced an error, and so it cannot be successfully terminated before installing the new version. 此错误可能是由先前产生错误的应用程序引起的,因此在安装新版本之前无法成功终止。

To fix the problem in this case, you can "Force stop" the application in the Application Manager of the device, or completely uninstall it. 要在这种情况下解决问题,您可以在设备的应用程序管理器中“强制停止”应用程序,或者完全卸载它。

Try running the app again and all should be well. 尝试再次运行应用程序,一切都应该很好。

使用真实设备时,请确保手机上有足够的空间,我删除了设备上的一些文件,这对我有用

if you already have that app installed in ur mobile than deleted the app itself by going to settings->Application selecting that app and uninstall it . 如果您已经在移动设备上安装了该应用程序而不是删除应用程序本身,请转到设置 - >应用程序选择该应用程序并将其卸载。 if u face same problem than uninstall the other software to get more space in memory . 如果你遇到与卸载其他软件相同的问题,以获得更多的内存空间。

You need to do two things after which this error will be resolved.

1. In your AndroidManifest.xml file add android:installLocation="preferExternal" within your manifest tag.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.packagename.appname"
android:versionCode="1"
android:versionName="1.0" 
android:installLocation="preferExternal">

2. More importantly, clear the cache data in your device. Goto settings -> storage -> click on cached data. This will clear the cache and free the space.

3. Reconnect your device, clean your project and again run it on the device. The project will now run on your device

If You are Installing the application to the Emulator then Some times it happend. 如果您正在将应用程序安装到模拟器,那么有时会发生。 I face same Problem and i have solve it by my way. 我面临同样的问题,我按照自己的方式解决了这个问题。

In my Problem, I have install the application in emulator that is larger as like more then 10mb. 在我的问题中,我已经在模拟器中安装了大于10mb的应用程序。 And After that, i am going to Install another Application to that emulator and got this error.. 之后,我将安装另一个应用程序到该模拟器并得到此错误..

Sollution: Sollution:

I have just Restart the Eclipse that will erace all unwanted Memory and will get refresh to install the new Application. 我刚刚重启了Eclipse,它将获得所有不需要的内存,并将获得刷新以安装新的应用程序。

Note: Its only works for some Normal perpose. 注意:它仅适用于某些正常情况。 as like to get error after installing another application. 就像在安装另一个应用程序后得到错误一样。 . .etc. 。等等。 Otherwise follow CapDroid's answer. 否则请按照CapDroid的回答。 Thanks. 谢谢。

Just create a New Emulator then start that emulator and launch your Android app on that emulator by setting the target: 只需创建一个New Emulator然后启动该模拟器并通过设置目标在该模拟器上启动您的Android应用程序:

  • Right click on the project and go to Run As 右键单击项目并转到Run As
  • Run configuration 运行配置
  • Go to target, click on always prompt to pick target 转到目标,单击始终提示选择目标
  • Apply 应用
  • Run

There is a new screen in which you'll select the new emulator which you have created. 有一个新屏幕,您可以在其中选择已创建的新模拟器。 Run that app. 运行该应用程序。

Then there no such problem longer arises. 然后没有出现这样的问题。

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

相关问题 控制台错误:安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - console error: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE? 在运行模拟器期间 - Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE? during running emulator 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE Android Phonegap - Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Android phonegap 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - 在设备上 - Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE — on the device Android:安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - Installation errors: INSTALL_FAILED_INSUFFICIENT_STORAGE Android INSTALL_FAILED_INSUFFICIENT_STORAGE错误 - Android INSTALL_FAILED_INSUFFICIENT_STORAGE error INSTALL_FAILED_INSUFFICIENT_STORAGE - INSTALL_FAILED_INSUFFICIENT_STORAGE 增加Android模拟器的存储空间? (安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE) - Increase the storage space in Android emulator? (Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE) adb安装失败,错误为“INSTALL_FAILED_INSUFFICIENT_STORAGE” - adb install fails with error 'INSTALL_FAILED_INSUFFICIENT_STORAGE'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM