FLUTTER: Package install error: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] on SAMSUNG

2,725

I had the same problem, but on the emulator.

I solved it going to Android Studio -> AVD Manager -> Click edit button to go to the Settings of your emulator -> increase Internal storage

enter image description here

Share:
2,725
Rizwan Sohaib
Author by

Rizwan Sohaib

Android Developer, Since Nov 2011

Updated on December 27, 2022

Comments

  • Rizwan Sohaib
    Rizwan Sohaib over 1 year

    I have setup environment for Flutter using Android Studio and after fixing so many unthinkable issues, I could finally run first sample application on emulator. But this won't run on my phone. An error for INSUFFICIENT STORAGE appears like this;

    Launching lib\main.dart on SM C7010 in debug mode...
    Running Gradle task 'assembleDebug'...
    √ Built build\app\outputs\flutter-apk\app-debug.apk.
    Installing build\app\outputs\flutter-apk\app.apk...
    Package install error: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
    Error launching application on SM C7010.
    

    Above is output from Android Studio. I have also tried same through command prompt, but the error persist. Following are screenshots from CMD and I am also attaching screenshot of my phone storage; which I think is enough for installation of apps;

    enter image description here

    And contrary to the situation, it does not give storage error for Native apps I have been developing. To check this again, I have started new native (Java) project in Android Studio and tried to install the app. It just worked fine, and the new app got installed straight away. Following are the screenshots;

    enter image description here

    Can someone guide me about the fix.? I have tried a lot of solutions being posted but none of those fix it; as apparently storage is not an issue. Because if storage is an issue; how does a Native app get installed on the same time!

    UPDATE: Feb 19, 2021

    I cleared more space, and error persisted even when 8-GB free space was available. Then I sacrificed my WhatsApp data, and now I got 21-GB free space on phone. And the error still persist, I have also cleared cache of all big-sized apps on phone and also restarted. Also, it won't let me install as APK file directly from storage with the same error;

    I just do not get this!

  • Rizwan Sohaib
    Rizwan Sohaib over 3 years
    Native app was running even when free space was less than 1GB. Now I have 4GB free space available. I wonder how is 4GB free space insufficient.
  • Rizwan Sohaib
    Rizwan Sohaib over 3 years
    Now I have created more free space, and it is more than 08-GB free space on phone. Still flutter app won't install. And also, apk file is not being installed from internal storage due to same error; i.e. Insufficient Storage.
  • Rizwan Sohaib
    Rizwan Sohaib over 3 years
    I have updated my question, because now I created more than 21-GB free space, and the error persist.
  • Rizwan Sohaib
    Rizwan Sohaib over 2 years
    Question is not about emulator, it is about Samsung Device.
  • Guillem Puche
    Guillem Puche over 2 years
    True Rizwan, I answered that because someone can have the error FLUTTER: Package install error: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] on the emulator, as me.