Install failed insufficient storage как исправить

Carefully follow the detailed guide to fix Android & SD card error INSTALL_FAILED_INSUFFICIENT_STORAGE without worrying about losing data. First, download Android data backup and recovery software to backup Android files to PC, to ensure that nothing is going to lose during the fix; and then apply each of the suggested methods to resolve the insufficient storage issue while installing apps.

Summary

Carefully follow the detailed guide to fix Android & SD card error INSTALL_FAILED_INSUFFICIENT_STORAGE without worrying about losing data. First, download Android data backup and recovery software to backup Android files to PC, to ensure that nothing is going to lose during the fix; and then apply each of the suggested methods to resolve the insufficient storage issue while installing apps.

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

I’m getting «Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE» error while installing the application on my device today. I have deleted some files on my SD card, but still face the issue. I’m sure it’s not the issue with the space on SD card. Can anybody suggest how to resolve this?

Overview

It’s said that 9 out of 10 Android users have been facing the insufficient space on Android while installing an app or whatever, even though there is a plenty of storage space on both the internal memory or external SD card. How did the failure come?

Causes

Primarily, you got to know how an Android app installation or update takes effect. For example, the first time an app is installed, and the APK file is saved as /data/app/-1.apk (1.apk). When the app is to be updated, the updated APK file is saved as /data/app/-2.apk (2.apk). Under normal circumstances, the first version (1.apk) gets deleted.

Now you ought to get the point. When an updated app is about to install, whereas the old  APK file was not deleted, and it’s really happened a lot amongst many Android devices. 1.apk stays where it was, the system is now going nowhere to place the 2.apk only sends an installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE.

Solutions

So, how are you going to troubleshoot the wrongly reported «insufficient storage» error? Usually, just reboot your device once or twice would clear the message away, but it’ll surely come back soon. We know it’s a nightmare for Android players not being able to install desired game apps, music apps, video apps and others due to such irritating prompt.That’s why we did a lot of research and studies, to verify the following 3 fixing methods that can fix INSTALL_FAILED_INSUFFICIENT_STORAG error.

First of all, before attempting to try the workarounds, never, on any account, forgot to backup Android to PC in advance. It’s an essential procedure that you must do it likewise.

Step 1. Backup Android, including contacts, messages, pictures, videos and anything important

1) Download and install EaseUS MobiSaver for Android on a Windows PC.

2) Connect the target Android device to the PC, and wait for the software to recognize the device. Click «Start».

connect android device to a pc and start to backup data files

3) The scanning process is for searching the existing and lost data on the Android phone.

scan existing and lost data on android device

4) All the Android data is found and displayed, select all files that you’d like to save a copy and click «Recover» button. You can put the bakcup file to the PC storage or other storage media like a USB flash drive or a memory card.

select all files and click recover button to backup files to a pc

Step 2. Check each workaround to fix installation error: INSTALL_FAILED_INSUFFICIENT_STORAG

EaseUS Android data recovery tool has ensured the data safety, so you can carefully check each workaround we provided in the below part to nail it.

Fix 1. Delete both apk files

1) Uninstall the app
2) find the path of both files and use your method to delete them all.

/data/app/-1.apk

/data/app/-2.apk

Or just run(this is somewhat higher leveled):

adb shell «pm uninstall»
adb shell «rm -rf /data/app/-*»

Fix 2. Add android:installLocation attribute

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

2) Go to settings —> storage —> click on cached data and clear the cache data in your device. 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.

Fix 3. Increase Android emulator’s memory capacity

1) Right click the root of your Android Project, go to «Run As» and then go to «Run Configurations…».
2) Locate the «Android Application» node in the tree at the left, and then select your project and go to the «Target» tab on the right side of the window.
3) look down for the «Additional Emulator Command Line Options» field and finally paste «-partition-size 1024» there.
4) Click Apply and then Run to use your emulator.

Summary

Carefully follow the detailed guide to fix Android & SD card error INSTALL_FAILED_INSUFFICIENT_STORAGE without worrying about losing data. First, download Android data backup and recovery software to backup Android files to PC, to ensure that nothing is going to lose during the fix; and then apply each of the suggested methods to resolve the insufficient storage issue while installing apps.

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

I’m getting «Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE» error while installing the application on my device today. I have deleted some files on my SD card, but still face the issue. I’m sure it’s not the issue with the space on SD card. Can anybody suggest how to resolve this?

Overview

It’s said that 9 out of 10 Android users have been facing the insufficient space on Android while installing an app or whatever, even though there is a plenty of storage space on both the internal memory or external SD card. How did the failure come?

Causes

Primarily, you got to know how an Android app installation or update takes effect. For example, the first time an app is installed, and the APK file is saved as /data/app/-1.apk (1.apk). When the app is to be updated, the updated APK file is saved as /data/app/-2.apk (2.apk). Under normal circumstances, the first version (1.apk) gets deleted.

Now you ought to get the point. When an updated app is about to install, whereas the old  APK file was not deleted, and it’s really happened a lot amongst many Android devices. 1.apk stays where it was, the system is now going nowhere to place the 2.apk only sends an installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE.

Solutions

So, how are you going to troubleshoot the wrongly reported «insufficient storage» error? Usually, just reboot your device once or twice would clear the message away, but it’ll surely come back soon. We know it’s a nightmare for Android players not being able to install desired game apps, music apps, video apps and others due to such irritating prompt.That’s why we did a lot of research and studies, to verify the following 3 fixing methods that can fix INSTALL_FAILED_INSUFFICIENT_STORAG error.

First of all, before attempting to try the workarounds, never, on any account, forgot to backup Android to PC in advance. It’s an essential procedure that you must do it likewise.

Step 1. Backup Android, including contacts, messages, pictures, videos and anything important

1) Download and install EaseUS MobiSaver for Android on a Windows PC.

2) Connect the target Android device to the PC, and wait for the software to recognize the device. Click «Start».

connect android device to a pc and start to backup data files

3) The scanning process is for searching the existing and lost data on the Android phone.

scan existing and lost data on android device

4) All the Android data is found and displayed, select all files that you’d like to save a copy and click «Recover» button. You can put the bakcup file to the PC storage or other storage media like a USB flash drive or a memory card.

select all files and click recover button to backup files to a pc

Step 2. Check each workaround to fix installation error: INSTALL_FAILED_INSUFFICIENT_STORAG

EaseUS Android data recovery tool has ensured the data safety, so you can carefully check each workaround we provided in the below part to nail it.

Fix 1. Delete both apk files

1) Uninstall the app
2) find the path of both files and use your method to delete them all.

/data/app/-1.apk

/data/app/-2.apk

Or just run(this is somewhat higher leveled):

adb shell «pm uninstall»
adb shell «rm -rf /data/app/-*»

Fix 2. Add android:installLocation attribute

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

2) Go to settings —> storage —> click on cached data and clear the cache data in your device. 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.

Fix 3. Increase Android emulator’s memory capacity

1) Right click the root of your Android Project, go to «Run As» and then go to «Run Configurations…».
2) Locate the «Android Application» node in the tree at the left, and then select your project and go to the «Target» tab on the right side of the window.
3) look down for the «Additional Emulator Command Line Options» field and finally paste «-partition-size 1024» there.
4) Click Apply and then Run to use your emulator.

Если ваш Андроид-планшет (или смартфон) внезапно осчастливил вас сообщением «Недостаточно места в памяти устройства» или еще более пугающим «insufficient storage available», хотя этой самой памяти у него (и вы в этом точно уверены) предостаточно, то переживать особо не стоит. Вы не первый(ая), кому приходится сталкиваться с этой довольно распространенной ошибкой ОС Android.

А раз ошибка не редкая и уже известная, значит, кто-то грамотный уже придумал, как ее устранить.

Конечно, так бывает не всегда, но в этот раз действенная «таблетка» от этой болезни действительно уже есть.

Итак, как устранить ошибку «Недостаточно места в памяти устройства» (insufficient storage available) на Андроиде:

ШАГ 1 — находим 2 мегабайта

Для начала отметим, что уведомление об ошибке с формулировкой «Недостаточно места в памяти устройства» (insufficient storage available), чаще всего появляется в случае, когда юзер пытается установить новое приложение на свой Андроид-смартфон или планшет, и при этом значительный объем данных из физической памяти устройства переносится на карту памяти microSD, вызывая сбой в кэше.

Собственно, в некорректном обновлении кэша и кроется причина данной ошибки — это важно знать.

Потому что, теперь, когда ошибка «Недостаточно места в памяти устройства» (insufficient storage available) уже обозначилась, чтобы проблему эту устранить, вам понадобится специальный программный инструмент, проще говоря, приложение, емкостью 2MB, которое надо будет куда-то скачать и установить.

А поскольку память ваш Андроид выделять под это уже не хочет, то, скорее всего, придется пожертвовать чем-то наименее нужным из того, что хранится или установлен в памяти устройства (а не на карточке — это тоже важно).

Другими словами, чтобы решить вопрос, вам придется в любом случае освободить 2MB памяти, что-то удалив из памяти смартфона или планшета (наименее нужное приложение, несколько старых фоток, видеороликов или аудиофайлов), даже если по отчетам памяти вроде бы много. Иначе никак. Но это, пожалуй, самая трудная часть всего мероприятия.

ШАГ 2 — качаем инструмент

Изыскав 2 мегабайта памяти, идем на Google Play Store, ищем и загружаем оттуда бесплатное приложение, которое называется App Cache Cleaner – 1Tap Clean.

ШАГ 3 — чистим кэш

Если приложения вы скачали и установили, то дальше все — дело техники. Открываем программку, и она автоматически начинает сканировать память устройства на предмет изучения состояния кэша установленных ранее приложений.

По факту завершения данной процедуры вам будет предоставлена возможность очистить кэш каждого из приложений путем поочередного нажатия иконок с изображением корзинки, расположенных рядом с названиями программок, либо удалить весь кэш оптом — нажатием на одну большую кнопку внизу экрана.

insufficient storage available / Недостаточно места в памяти устройства: как устранить?

ШАГ 4 — работаем дальше

После этого вы снова получаете доступ к свободной памяти на своем Андроид-смартфоне или планшете и можете снова качать и устанавливать нужное вам приложение или обновление.

Ошибка «Недостаточно места в памяти устройства» (insufficient storage available) устранена!

Ошибка — это проклятие в жизни каждого разработчика Android. Это происходит независимо от размера приложения или объема доступного хранилища. Перезагрузка целевого устройства на короткое время решает проблему, но вскоре она возвращается. Существуют сотни (если не тысячи) сообщений на досках сообщений от людей, спрашивающих, почему возникает проблема, но люди в Google удручающе молчат по этому поводу.

Есть простой обходной путь. Если ваше тестовое устройство работает под управлением Android 2.2 или более поздней версии, добавьте атрибут в файл манифеста приложения со значением . Это приведет к установке приложения на внешнее хранилище устройства, например на SD-карту телефона.

Например:

Это скорее пластырь, чем исправление, и он может быть не идеальным, если вы хотите, чтобы готовое приложение было установлено во внутренней памяти устройства. Но это, по крайней мере, сделает процесс разработки менее утомительным.

  • он будет работать для Android API уровня 4 или 1.6 ??
  • Я получил это сообщение в файле манифеста: -> ошибка: не найден идентификатор ресурса для атрибута 'installLocation' в пакете 'android' Справка Pls
  • 1 @AndrewSmith: не могли бы вы ответить на свой вопрос? Просто наткнулся на этот вопрос во время проверки, потому что он помечен как не настоящий вопрос. Хотя флаг в основном правильный, было бы обидно, если бы решение было потеряно.
  • Первое, что нужно сделать: выяснить, действительно ли проблема связана с космосом! Подробнее см. Мой ответ на этот вопрос.
  • 1 У меня была эта ошибка на эмуляторе Android. В android studio - AVD manager есть возможность стереть данные на конкретном устройстве. Это устранило мою проблему

1 2 Далее

Это всего лишь временное решение и не настоящее исправление.

После того, как это случилось со мной и я не был доволен текущими ответами, я начал работать, пытаясь выяснить это из источника AOSP. Я нашел НАСТОЯЩИЙ решение.

Объяснение

Во-первых, немного (упрощенная) предыстория установки и обновления Android.

При первой установке приложения:

  1. Файл APK сохраняется как

     / данные / приложение /-1.apk (1.apk) 

Когда приложение будет обновлено:

  1. Обновленный файл APK сохраняется как:

     / данные / приложение /-2.apk (2.apk) 
  2. Первая версия (1.apk) удаляется.

В наших следующих обновлениях:

  1. Новый APK сохраняется как (1.apk), а (2.apk) удаляется (повторять бесконечно).

Проблема, с которой сталкивается большинство из нас, возникает, когда приложение обновляется, но удалить старый APK не удается. Само по себе это еще не приводит к сбою обновления, но вызывает наличие двух файлов APK в .

В следующий раз, когда вы попытаетесь обновить приложение, система не сможет переместить его временный файл, потому что ни (1.apk), ни (2.apk) не пусты. Поскольку File # renameTo (File) не генерирует исключение, а вместо этого возвращает логический PackageManager, у него нет никакого способа узнать, почему он возвращает INSTALL_FAILED_INSUFFICIENT_STORAGE, даже если сбой не имел ничего общего с объемом свободного места.

Решение

Пробег:

adb shell "pm удалить "оболочка adb" rm -rf / data / app /-*' 

ИЛИ

Удалить приложение

Используйте свой любимый метод для удаления ОБЕ:

/ данные / приложение /-1.apk

/ данные / приложение /-2.apk

Убедитесь, что ничто другое аналогичным образом не блокирует будущие установки. В моем случае у меня был / data / app-lib /-1 каталог тратится! В этом случае сработала установка на SD-карту, а также последующий перенос во внутреннюю память. (Создание / data / app-lib / без окончания .)

Почему сработали другие «решения»

  • Код для установки на внешнее хранилище существенно отличается, что не имеет тех же проблем

  • При удалении приложения удаляется только одна версия файла APK из . Поэтому вы можете переустановить его один раз, но не обновлять.

  • Когда возникает эта ошибка, количество свободного места в эмуляторе не имеет значения.

  • 9 @ Msmit1993, у вас нет доступа к каталогу данных на некорневом устройстве. Наличие SDK и ADB не имеет значения.
  • 4 Для истинно ленивых вот фрагмент bash:
  • 1 Я тоже пробовал но безуспешно, у меня ничего не работает. Использую для тестирования реальное устройство. Какое решение в этом случае?
  • 1 Мне пришлось очистить
  • 1 В моем случае я добавляю, чтобы установить приложение с помощью adb install -f ... В противном случае он отказывался устанавливать его, хотя у меня было 1,7 ГБ свободной внутренней памяти; может быть потому, что у меня не было SDCARD. Но с параметром -f, по крайней мере, это сработало, я не знаю почему ...

Вам необходимо увеличить объем памяти эмулятора Android. Для этого есть два пути:

  1. Щелкните правой кнопкой мыши корень вашего проекта Android, выберите «Запуск от имени», а затем «Выполнить конфигурации ...». Найдите узел «Android-приложение» в дереве слева, затем выберите свой проект и перейдите на вкладку «Цель» в правой части окна. Найдите поле «Дополнительные параметры командной строки эмулятора» (иногда вы Вам нужно сделать окно больше) и, наконец, вставить туда «-partition-size 1024». Нажмите «Применить», а затем «Выполнить», чтобы использовать свой эмулятор.

  2. Перейдите в настройки Eclipse и выберите «Запустить». Добавьте «-размер раздела 1024» в поле «Параметр эмулятора по умолчанию». Нажмите «Применить» и используйте свой эмулятор как обычно.

  • 104 Оскар, вы предполагаете, что это происходит на симуляторе. В моем случае это происходит на реальном устройстве, на которое этот ответ не отвечает.
  • Второй вариант мне не подошел. Однако вариант 1 сделал! Качественный товар! И работал с эмулятором 2.1.
  • У меня это не сработало, предположительно потому, что у меня включены снимки? Как заставить эмулятор запускать Android с нуля с новой опцией -partition-size?
  • 1 Потеряно на варианте 1 - у меня нет вкладки "Target" в ecclipse в этом месте.
  • 2-й вариант сработал для меня, спасибо за гуд пост @RacZo

Спасибо, что разместили этот вопрос. У меня есть дополнительные идеи, которые могут помочь некоторым разработчикам.

Я отлаживаю свое приложение на устройстве (а не на эмуляторе). Устройство имеет 21 МБ свободного места на (как показывает «df» при выполнении «оболочки adb»), а мое приложение занимает всего 5 МБ. Однако я обнаружил, что если я удалю другие приложения на устройстве (без перезагрузки телефона и перезапуска adbd), INSTALL_FAILED_INSUFFICIENT_STORAGE на некоторое время исчезнет, ​​а затем вернется.

Таким образом, кажется, что для отладки моего 5-мегабайтного приложения требуется больше 20 Мбайт места в , и, кроме того, что-то утекало каждый раз, когда я отлаживал свое приложение.

Итак, я сделал "adb shell" и перечислил ВЕСЬ каталог с


И я посмотрел на вывод в 5000 строк, чтобы увидеть, куда уходит все пространство.

я обнаружил огромное количество потраченного впустую места на моем устройстве в каталоге в виде старых файлов журнала сеансов отладки, прошедших несколько месяцев назад.

Это не были мои файлы журналов: они были созданы какой-то частью инфраструктуры Android.

Я удалил их и мгновенно сохранил 58 МБ, которые не были отнесены в приложении «Настройки» к какому-либо конкретному приложению. У меня маленькое устройство, поэтому 58 МБ очень много (около 40%).

До сих пор я не получил INSTALL_FAILED_INSUFFICIENT_STORAGE снова после многих запусков. Будем надеяться, что это была настоящая проблема, хотя OP предполагает, что на его устройстве было много места (но не сказал, сколько).

Надеюсь, некоторые из вас также смогут избежать INSTALL_FAILED_INSUFFICIENT_STORAGE, периодически удаляя .

Или вы можете, по крайней мере, выполнить в , чтобы увидеть, куда уходит все ваше пространство, если действительно есть какая-то (скрытая) проблема с пространством.

  • 26 есть идеи, как это сделать на телефоне без рута? У меня нет доступа к каталогу данных. отличный пост кстати +1
  • 1 Спасибо за информацию. К вашему сведению, вы можете объединить флаги в Unix, чтобы команда стала
  • 1 С правами root выполните: # su # du / data | sort -g, чтобы получить список папок / файлов, упорядоченных по размеру
  • @JuanMaCuevas отображает только папки.
  • @Rich, попробуйте загрузить стороннее приложение Astro File Manager. Он очень популярен и дает вам доступ к файлам вашего телефона. play.google.com/store/apps/…

Следующее помогает:

  • Откройте оболочку для устройства

    
    
  • Перейдите во временную директорию, куда сначала копируется входящий APK.

    
    
  • Перечислите доступные файлы и удалите по желанию

    
    

До сих пор это было надежно для меня на реальном устройстве.


РЕДАКТИРОВАТЬ: Это оказалось не таким надежным решением, как предыдущее.

Я пробовал несколько решений. Ничего особо не помогло. Наконец я нашел приложение под названием SD Maid. Это помогло.

В нем говорится, что на некорневых устройствах функциональность ограничена. Мой внедрен, поэтому было бы неплохо услышать от людей, что он эффективен в этих сценариях, и если бы это было просто случайностью, что это сработало для меня (в любом случае это непредсказуемая проблема).

НОТА: Я не имею отношения к приложению. Просто нашел его поиском.

  • Мне помогло .. Некоторые мои предыдущие приложения хранятся в папке tmp. После того, как я удалил их, он работает нормально.

Я решил это, включив в в файле AndroidManifest.xml.

  • Действительно работает. Спасибо.
  • Это единственное исправление, которое сработало у меня на реальном устройстве. Спасибо.
  • просто и красиво работает. спасибо
  • Я добавил эту строку кода, но все еще получаю эту ошибку
  • Лучшее решение для работы с эмулятором. Спасибо!

Я добавил дополнительную строку в файл манифеста приложения, который является . с помощью этой строки он заставляет установить приложение во внешнее хранилище. см. пример ниже,

 

Связанная проблема с эмулятором - когда в разделе не осталось места.

Например,


Вот пример каталога :


Я удалил лишние файлы APK. Кажется, при каждой установке вы получаете новый APK-файл. Просто удалите лишние файлы APK.

Например,


  • 2 1. запустите "adb shell" 2. cd в каждый каталог данных и найдите те, которые содержат большие бесполезные файлы. 3. Удалите их с помощью "rm (filename)" 4. Мои повторяющиеся проблемы связаны с мусором, например "ApiDemos" и "dalvik-cache" (просто удалите все содержимое этого файла)

В моем случае сбой был вызван приложением . Я столкнулся с этим на эмуляторе x86 android. Что я сделал:


Слишком мало свободного места на


Почти все было поглощено одним приложением! Это системное приложение, поэтому я считаю, что лучше не удалять его. Вместо этого я очистил данные приложения.


Диск был очищен, и приложение успешно установлено.

  • Это единственное решение, которое у меня сработало. Через 2 часа! :)

Я пробовал следующее:

  • Перезапустил мое устройство
  • Удален предыдущий APK
  • Восстановить мой APK
  • Удалить мою предыдущую копию с устройства
  • Переустановить

Проверьте, работает ли он так же с вами.

  • 4 Да, перезагрузка устройства была единственной, которая сработала (после попытки нескольких решений с этой страницы)
  • Перезагрузка устройства работает :)

Мне немного странно писать это, но я не могу быть уверен на 100%, что это не правда в некоторые случаи (у меня это сработало). Если у вас были следующие симптомы:

  • Вы работали с помощью физического устройства (в моем случае - Samsung Galaxy Ace),
  • Вы развивались пару дней подряд,
  • Ваш телефон был подключен все время, день и ночь.
  • Вы начали получать эту ошибку через пару дней, и она продолжала ухудшаться.
  • Никто из других ответов сработали для вас.
  • Вы так же смирились, как и я ...

Затем попробуйте следующее:

  • Отключайте телефон, когда не работаете!

Я отключил свой телефон от сети и оставил его на ВЕСЬ ДЕНЬ. Моя батарея немного разрядилась. После этого переподключил и снова начал отладку. На этот раз все заработало! И я имею в виду действительно ДЕЙСТВИТЕЛЬНО хорошо, как и раньше.

Возможно ли, что эта ошибка может быть связана с некоторыми аппаратное обеспечение, связанное с батареями? Мне все еще кажется странным думать об этом, но теперь я то и дело отключаю свой телефон (и на ночь), и проблема не возвращалась.

  • Это происходит со мной постоянно - на всех моих устройствах. В течение дня дела обычно начинают терпеть неудачу в конце каждого дня. Это так раздражает, и это замечательно, что Google еще не исправил это ...
  • То же самое для меня, но перезагрузка телефона постоянно решала мою проблему.

Отвечая на самый первый пост этой темы ...

Симптом: некоторые приложения не устанавливаются, говоря, что нет места, а на самом деле есть много свободного места как на внутреннем, так и на внешнем хранилище !!! Решение: по умолчанию отключить внешнюю установку.

Настройка внешней установки по умолчанию с помощью этого:


Делает невозможной установку многих приложений, которые нельзя установить извне (например, adblock + или около того)

Тогда решение


Или


  • Я начал думать, что внутренняя память этого телефона сломана, но установка места установки на 1 устранила проблему «недостаточно места». Спасибо!

Samsung Galaxy Ace В своих спецификациях объявляет 158 МБ внутренней памяти, но основные приложения и службы потребляют около 110 МБ из них (я использовал диспетчер задач на устройстве, чтобы проверить это). У моего приложения было 52 МБ, потому что в нем было много ресурсов. Как только я удалил некоторые из них до 45 МБ, приложение удалось установить без проблем. Устройство все еще предупреждало меня о том, что внутренняя память почти заполнена, и я должен удалить некоторые приложения, хотя у меня было установлено только одно приложение.

После установки выпускной версии пакета .apk и его удаления на моем устройстве отображается 99 МБ свободного места, так что отладочная информация, возможно, все-таки засоряет устройство. См. Ответ Луи Семприни.

В Eclipse,

и выберите предпочтительную цель эмулятора для запуска.

Затем под «дополнительными параметрами командной строки эмулятора» добавьте следующее:

-размер раздела 1024

Затем ЗАКРОЙТЕ эмулятор и щелкните значок отладки, который запустит выбранный вами эмулятор.

Надеюсь, это поможет...!

  • Подсказка для пользователей. Вы можете установить размер раздела 1024 как «Внутреннее хранилище», что соответствует

Поскольку эта проблема все еще существует, я подумал, что добавлю что-нибудь к ответу RacZo в целях разработки. Если вы не используете плагин Eclipse или по какой-либо причине у вас нет исходного кода, а только .apk, вы можете увеличить размер раздела из командной строки, используя ту же опцию при запуске эмулятора:

эмулятор -avd  -размер раздела 1024 

Насколько мне известно, эта опция не задокументирована на сайте developer.android.com, поэтому я решил опубликовать ее здесь, чтобы люди могли найти это решение.

  • это, безусловно, лучший вариант, потому что не требует обновления какого-либо файла или использования какого-либо приложения, просто

Я столкнулся с этой проблемой с моим новым Nexus 4 и APK, созданным с помощью Adobe AIR. У меня уже был android: installLocation = "seekExternal" в моем манифесте. Я заметил, что я также звонил по номеру с опцией (установить пакет на общее запоминающее устройство, например SDCard), что казалось излишним.

Удаление флага из устранило проблему для меня.

  • 1 +1, хороший, -s следует использовать только при замене предыдущей установленной сборки.

Я столкнулся с этим вопросом, потому что получал эту ошибку, используя Sideload Wonder Machine для установки приложений на мой настоящий телефон. Я обнаружил, что проблема в том, что у меня было несколько файлов .apk в каталоге / payload. Я думал, что это что-то, что поддерживается, но когда я удалил все, кроме одного .apk, ошибка исчезла.

Просто удалите приложение из эмулятора либо из командной строки, либо перейдите в настройки и удалите приложение. Это предотвратит появление ошибки.

Если вы используете настоящее устройство, у вас просто закончилась внутренняя память. Просто зайдите в настройки Android -> Приложения, и переместите некоторые приложения на SD-карту или удалите некоторые приложения.

Если вы используете эмулятор, см. Ответ RacZo.

  • 10 Мы говорим об ошибке недостаточного хранилища, которая возникает, когда доступно много свободного места.

Я столкнулся с той же ошибкой, когда попытался пакетно установить около 50 приложений в каталог SD-карты с помощью оболочки ADB после полного обновления ПЗУ:


Некоторые из них установлены, но многие не работают с ошибкой INSTALL_FAILED_INSUFFICIENT_STORAGE. У всех неудачных приложений было место в их имени. Я переименовал их и попробовал снова. На этот раз все сработало. Перезагрузку не делал и ничего. Возможно, это не та проблема, с которой вы столкнулись, но это может помочь кому-то искать с той же проблемой, что и я.

  • Также я замечаю, что когда я пропускаю название приложения по буквам, иногда возникает та же ошибка. В моем случае это вводящее в заблуждение сообщение об ошибке.

Эмуляторное решение

Откройте каталог . Обычно в вашем домашнем каталоге. Затем перейдите на и откройте каталог с именем avd, которое вы хотите изменить.

Теперь отредактируйте файл и добавьте следующую строку или измените следующую строку:

Где - это размер, который вы хотите использовать в МБ. Сохраните файл, а затем запустите свой эмулятор с установленным . Теперь ваш эмулятор должен иметь новый размер.

Решение простое.

Откройте AVD Manager. Отредактируйте свой AVD.

Внизу, в разделе оборудования, есть некоторые свойства, перечисленные с помощью «Создать ...» и «Удалить» справа от него.

Нажмите New. Выберите размер раздела данных. Установите «512 МБ» (требуется МБ). И вы сделали. если проблемы по-прежнему возникают, увеличьте раздел системы и кеша тем же способом.

Все это задокументировано прямо здесь: http://developer.android.com/guide/developing/devices/managing-avds.html

  • 2 Разделение данных недоступно в Google API уровня 14.

Убедитесь, что вы не подключаете свое устройство Android к usb при попытке запустить эмулятор.

Если вы запускаете приложение на эмуляторе и проблема не исчезнет, ​​проверьте диспетчер уведомлений. Если отображается значок и уведомление «Память телефона заполнена», это означает, что вы уже установили так много приложений на свой эмулятор. Удалите несколько приложений, которые вы не хотите в настоящее время, из «Настройки >> Управление приложением >> Выбрать приложение >> Удалить».
Тот набор.
Теперь перезапустите программу.

Я получил эту ошибку сегодня, когда использую свой телефон для тестирования / отладки с Eclipse.

Моя ошибка заключалась в том, что я использовал норвежский специальный символ («æ», «ø», «å») в имени приложения. Когда я изменил имя приложения (используя «o» вместо «ø»), оно было установлено правильно.

Вероятно, не ваша проблема, но может быть заметна для других людей, получающих ту же ошибку.

Попробовав все остальное в этой теме, я обнаружил, что моя собственная проблема заключалась в том, что путь к файлу .apk был слишком длинным. Итак, я зашел в каталог, где находился .apk, и сделал:


вместо того


И это сработало ... установил нормально.

Просто подумал, что это может помочь кому-то другому.

  • Я мог бы добавить, что создание каталога символической ссылки позволило мне создавать сборки из IDE и отлаживать: ln -s / Users / abc / a ridiculously long directory path / subpath / subsubpath / subsubsubpath / shortpath

Обходной путь:

Скомпилировать как 2.1 без .

ОК?

Скомпилируйте как 2.2, включая .

Это по-прежнему будет установлено в SDK версии менее 8 (тег XML игнорируется).

В моем случае это было исправлено путем увеличения расширенной памяти eclipse, путем изменения значения -Xmx768m в eclipse.ini

В итоге я удалил приложение с устройства, а затем снова установил его в Eclipse. Это проблема, с которой я все время сталкиваюсь на своем устройстве при регулярном использовании, но сегодня я получил это сообщение от разработки.

У меня не было root-доступа на моем телефоне, и я не готов к установке моего приложения на SD-карту. На доступно 15 МБ места, а размер моего приложения меньше 2 МБ.

Некоторое время я обходился; очистка проекта Eclipse и перезагрузка телефона, но в конечном итоге это перестало работать (вероятно, после обновления).

Очистка кеша моего приложения решила для меня проблему и не требует перезагрузки телефона или удаления приложения.

На рынке есть приложения, которые можно использовать для очистки кеша сразу нескольких приложений. Ищите "чистый".

Я тоже столкнулся с той же проблемой, и я сделал «Сброс заводских данных», и после этого все заработало.

  • 8 Я бы действительно не рекомендовал это как решение. Полный перебор.
  • 3 Он стирает ваш / data, что освобождает место, поэтому установка снова будет работать. Очень тупой инструмент, а не решение. Ошибка может повториться через несколько приложений.
  • 25 Это то же самое, что доктор сказал: «Я не знаю, что с твоей рукой, поэтому я отрезаю ее».

1 2 Далее

Are you looking some ways to get rid of “Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE”?

Don’t worry, this blog will help you to get away of such error message on your Android device. Not only you, but there are several other users who have come across such unexpected situation while accessing their android device.

So let us go further and know about the error and also how to fix Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE.

About Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

This error is one type of headache to the developers of Android. Generally, it occurs though your device has sufficient storage. However, when several people reported about the problem and they requested for the solution then Google was silent in the issue.

Later on, it was found that rebooting the device might help to get away of the situation. After rebooting, the device was normal and the problem was fixed but again the same problem occurs.

So, how to solve such error? Don’t worry, let us read further.

Practical scenario:

Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

I’m getting “Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE” error while installing the application on my device today. It is working fine till yesterday, today only im facing this problem. I have deleted some files on my SD card, but still facing the issue. I’m sure it is not the issue with the space on SD card. Can anybody suggest how to resolve this.

– From Stack Overflow

To Fix Android Installation Error INSTALL_FAILED_INSUFFICIENT_STORAGE, we recommend this tool:

This effective tool can fix Android issues such as boot loop, black screen, bricked Android, etc. in no time. Just follow these 3 easy steps:

  1. Download this Android System Repair tool (for PC only) rated Excellent on Trustpilot.
  2. Launch the program and select brand, name, model, country/region, and carrier & click Next.
  3. Follow the on-screen instructions & wait for repair process to complete.

Reasons behind the error

Generally, everyone knows how Android app installation or updates effect takes place. If anyone don’t know then here is what you should know about. When any app is installed then the APK file is saved as /data/app/-1.apk (1.apk).

Now when the same app needs an update then the APK file is saved as /data/app/-2.apk (2.apk). In normal situations after the update, the first version (1.apk) gets erased.

Now here you can find out why the error occurs. When you install any updated app on your device and the old APK file is still present in the device then it is a common problem with many user.

The first APK file which was named as (1.apk) still remains in the same place and when the updated app is installed then it has no place for 2.apk file. In such condition, an installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE occurs.

Now the question arises, how to fix the error message on android?

Related: [GUIDE]- How to Fix “Insufficient Storage” Error Message on Android

How to fix Android error “INSTALL_FAILED_INSUFFICIENT_STORAGE”

It is very important to know how to fix any error that you come across on your android device. The error that you have faced now, it has simple solution.

Simply rebooting the device one to two times can clear the message. But it has a chance to come back again (already mentioned above).

This situation is really an irritating one as users cannot install any popular games app, video apps, music apps and many others just because of the unwanted popup error message.

Therefore, to get out of the unexpected error message, here you will get some of the best ways to deal with such condition.

But before going to any solution, you have do some simple steps so that you don’t have to face any data loss situation further.

So follow the below steps carefully.

Step 1: Backup your Android data

Yes, this is one of the important step that you must do before going for any solution. You have to backup all your data’s including photos, contacts, videos, text messages, call history etc to safe place but do you know how?

Use Android Data Backup & Restore software to backup all your important data from your android device. This is one of the best ways to keep your data in safe place and whenever it is needed, you can restore them without any issue.

btn_imgfree-download-winbtn_imgfree-download-mac

Note: It is recommended to download and use the software on your PC or laptop. It is because recovery of phone data on the phone itself is risky as you may end up losing all your data because of data overriding.

Steps to backup and restore android data

With Toolkit for Android — Data Backup & Restore, you can easily backup your Android data. This tool has make it quite easier to back up your Android data to computer and even selectively restore backed up data to your Android device. Let us have a look how one can easily backup and restore their Android phone.

Part I: Back up your Android Phone

Step 1: Connect your Android device to computer

At first, there is a need to launch Toolkit for Android on your computer and then select Phone Backup

After the above step, connect your Android phone to the computer with the use of a USB cable. But it is quite important to make sure that you have enabled USB debugging mode on your Android phone. If your Android OS version is above 4.2.2, then remember that there will be a pop-up message display on your phone. Now simply tap on OK so that you can allow USB debugging on your device.

android-backup-guide-step1

Click Backup to start the backup Android phone data.

If you have already used this tool to back up your device in the past, then you can simply view your past backup by clicking on ‘View backup history’.

Step 2: Select file types to back up

When your Android phone gets connected, then you have to select the file types you want to backup. Remember one thing that Toolkit for Android has checked all the file types for you by default. After this, simply click on Backup so that you can begin the backup process.

android-backup-guide-step2

It will take a few minutes to complete the backup process. So, please do not disconnect your Android phone and also do not use the device or delete any data on the phone when the backup process is in progress.

android-backup-guide-step3

After the backup process gets over, you can then click on View the backup button to see what is there in the backup file.

android-backup-guide-step4

Part II: Restore Backup To Android Phone

Step 1: Connect your Android device to computer

Here, you are required to launch Toolkit for Android on your computer and then select ‘Phone Backup. Now simply connect your Android phone to the computer with the use of a USB cable.

android-backup-guide-step5

Step 2: Select the backup file you would like to restore

After clicking on Restore button, by default, the program will display the files from the latest backup on computer. Here you need to select backup file you need and then tap on View next to it.

android-backup-guide-step6

Step 3: Preview and Restore Backup file to Android Phone

You can have a preview here of each file in the backup. From here, you can check the files you need and then simply click on ‘Restore”.

android-backup-guide-step7

The overall process will take few minutes to complete. So, please do not disconnect your Android phone or do not open any Android phone management software during the process

android-backup-guide-step8

Step 2: Check each method to fix installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

Here you have to follow some methods to fix the error. In between, it may happen that some of the data might get lost then also no need to worry. Using Android Data Recovery tool will help you to get back all your erased data.

After that, follow the methods to get out of the problem.

Method 1: Erase both APK files

  • First, uninstall the app
  • Now search the both files path and delete them (/data/app/-1.apk) (/data/app/-2.apk)

In fact there is another way by which you can get out of this, for that, you have to run

  • adb shell “pm uninstall”
  • adb shell “rm -rf /data/app/-*”

Method 2: Add android:installLocation attribute

You have to add android:installLocation=”preferExternal” in your AndroidManifest.xml file within manifest tag. This will force the app to get installed on external storage of device.

For example:

<manifest xmlns:android=”http://schemas.android.com/apk/res/android”

package=”com.andrewsmith.android.darkness”

android:installLocation=”preferExternal”

Now go to Settings > Storage > hit on cached data and then clear the cache data from device. Doing this will help you to clear cache files and some space will be available.

At last, reconnect your device, then clean the project and run it again on your device. Now your device will be able to run the project.

Also Read: [Solved] “No Command” Error In Recovery Mode On Android

Method 3: Increase the capacity of Android emulator’s memory

The error also occur at the time of running Android application on Emulator and it occurs due to less virtual memory. So to fix it, follow the steps:

  • First, right click on root of Android project and then go to “Run As” and then “Run configurations…”
  • Here you have to locate “Android Application” and after that select your project and then go to “Target” tab
  • After that, search “Additional Emulator Command Line Options” and there you have to paste “-partition-size 1024”
  • At last, click on Apply option and Run to use emulator

I hope that after following all these methods and fixes, you will not get any such type of error on your Android device.

Conclusion

The error you have come across is common to many Android users so there is nothing to get worried about. However, I have mentioned some of the best methods to fix installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE.

Further, you can visit our Facebook, Twitter and G+ page and if you have, any questions then you can ASK HERE

btn_729Android Data Recovery

James Leak

James Leak is a technology expert and lives in New York. Previously, he was working on Symbian OS and was trying to solve many issues related to it. From childhood, he was very much interested in technology field and loves to write blogs related to Android and other OS. So he maintained that and currently, James is working for androiddata-recovery.com where he contribute several articles about errors/issues or data loss situation related to Android. He keeps daily updates on news or rumors or what is happening in this new technology world. Apart from blogging, he loves to travel, play games and reading books.

install failed insufficient storage error android emulator

Learn Few Effective Solutions To Fix Android Emulator Installation Error – “Install Failed Insufficient Storage”!

Overview: Are you getting installation error “INSTALL_FAILED_INSUFFICIENT_STORAGE” on Android Emulator while running an application. If so, then this post offer different solutions that will help you to fix Android emulator installation error “INSTALL_FAILED_INSUFFICIENT_STORAGE”. So, just go through the post and solve the issue by yourself.

  • Solution 1: Restart The AVD/Restart The Android Emulator Or Create A New AVD
  • Solution 2: Increase Android Emulator’s Internal Memory Storage
  • Solution 3: Delete Both The APK Files
  • Solution 4: Add android:installLocation attribute

Let’s start with real user practical scenario!

Practical Scenario 1: A User Getting Install Failed Insufficient Storage Error When Ionic Emulate Android

Insufficient storage error when ionic emulate android?

When I am running ionic emulate android, it building APK and opening emulator, but showing error that failure (Install failed insufficient storage ) and emulator not showing app.

Source: Ionic Forum

Practical Scenario 2: A User Experiencing Install Failed Insufficient Storage While Installing App From Android Studio

Android Studio [Install_Failed_Insufficient_Storage]

I have a problem with installing an apk of my app on my phone from Android Studio. Every time i tried i got this error message:

09/10 22:40:00: Launching app
$ adb push C:UserspokefAndroidStudioProjectsRunescapeappbuildoutputsapkapp-debug.apk /data/local/tmp/com.myapps.myproductions.rsstats.
$ adb shell pm install -r "/data/local/tmp/com.myapps.myproductions.rsstats."
pkg: /data/local/com.myapps.myproductions.rsstats.
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]

$ adb shell pm uninstall com.myapps.myproductions.rsstats.
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK

I know there are a lot of threads out there talking about this problem, but Ive already tried everything. Im certain i have enough storage, i cleared all caches, i uninstalled all previous versions, i changed the manifest to “android:installLocation=”preferExternal” , i restarted my phone etc, so please dont mark this as a duplicate.

This problem only happens since i changed the package path from com.example.myapp etc. to com.myapps.myproductions.rsstats. Im sure that I correctly adapted all paths in the files to this location. What else could I try?

Source:  stackoverflow

Also Read: [Solved]: ‘Insufficient Storage’ Error on Android

Just like above practical scenarios, there are many Android Developer who faces “INSTALL_FAILED_INSUFFICIENT_STORAGE” error while they try to run the application on the Emulator.

The error message is displayed as:-

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

So, how do you fix this error?

Well, there are several solutions as per several causes. So, let’s get to the solution section.

Solution 1: Restart The AVD/Restart The Android Emulator Or Create A New AVD

Things get automatically fixed in most of the cases when you restart the device. In this case, you can restart the AVD (Android Virtual Machine) on which you are installing the app or testing the project on.

In some cases, things get so bad that you have to restart the emulator as well.

However, if you are still getting the same error, then you can delete the AVD and create a new one. Here how to do this: Window >Android SDK AVD Manager >Delete >New.

Also Read: How Do I Get My Android Phone Out Of Headphone Mode?

Solution 2: Increase Android Emulator’s Internal Memory Storage

The Android Emulator default internal storage is 64MB, due to which you may get INSTALL_FAILED_INSUFFICIENT_STORAGE error message.

To fix this issue, you can increase the Android Emulator’s internal memory in the Eclipse launch configuration for your Android app with the additional parameter: “partition-size 1024”.

To do this follow the below steps:

  • Right-click the root of your Android Project.
  • Go to “Run As”, and then click on “Run Configuration”.

how to fix install failed insufficient storage Android emulator

  • Select your “Android Application” from the left section.
  • Then go to “Target” tab. Located on the right side of the window.
  • Scroll down and look for “Additional Emulator Command Line Options” and add “-partition-size 1024” there.

fixed install failed insufficient storage

  • Finally, Click on “Apply” to save changes and then click on “Run” to use your emulator.

Also Read: Fixes For “Sorry, This Media File Doesn’t Exist On Your SD Card/Internal Storage

Solution 3: Delete Both The APK Files

First of all you need to know how an Android app installation or update works. For example, first time when an app is installed then the APK file is saved as /data/app/-1.apk (1.apk). And when the app is to be updated then the updated APK file is saved as /data/app/-2.apk (2.apk).

Now you have to understand the point. When an updated app is about to get install while the old APK file was not deleted then 1.apk stays where it was and the system does not going to place 2.apk instead it display the installation error “INSTALL_FAILED_INSUFFICIENT_STORAGE”.

Hence, you have to delete both the APK files, to do so follow the below steps:

Simply uninstall the app. Find the path of both the APK files and use your own method to delete them all.

/data/app/-1.apk

/data/app/-2.apk

Alternatively, you can also delete both the apk file by running the following command:

adb shell “pm uninstall “
adb shell “rm -rf /data/app/-*”

You May Also Like:

  • How To Fix Android Error “Process System Isn’t Responding”
  • How To Fix “android.process.acore keeps stopping” Error
  • [Fixed]: “System UI isn’t responding. Do you want to close it?” Error
  • Solved: “Android Is Starting” Followed By “Optimizing App” Issue

Solution 4: Add android:installLocation attribute

You can also fix install_failed_insufficient_storage error by adding android:installLocation attribute.

Below follow how to do it:

In your AndroidManifest.xml file, within the manifest tag, add android:installLocation=”preferExternal”

package=”com.packagename.appname”
android:versionCode=”1″
android:versionName=”1.0″ 
android:installLocation=”preferExternal”>

Next go to Settings> Storage and then click on cached data and then clear the cache data on your device. This will clear the cache and free up the space.

Now reconnect your device. Clean your project and then again run it on the device. The project will run on your device without any error.

Wrap Up

I hope above mentioned-solutions have helped you in fixing the Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE on Android emulator. Just follow the solution one-by-one and see if problem solved or not.

Max Field is a founder of recoverandroid-data.com. He is an Android lover and loves to write tips, tricks, fixes for errors, data recovery solutions and more related to Android.

Понравилась статья? Поделить с друзьями:
  • Install failed insufficient storage error
  • Innovate lc 2 ошибка 8
  • Innosilicon t2t error code 24
  • Innosilicon error codes
  • Innosilicon 161 error