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

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!



Solution 1:[1]

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

Solution 2:[2]

It is because you dont have enough s[ace to install app on your device try to uninstall unused app and try to run again it will work as fluter app need more space to install

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Janvi Patel