'Stuck at installing build\app\outputs\apk\app.apk in Flutter... after uninstalling the app

I have read this and this, but nowhere could I find a good answer. I have a problem when I try to run the app. Initially it was working completely fine, but I uninstalled my app from my Android device for some reason and now when I try to run the app on my Android phone it is stuck at installing build\app\outputs\apk\app.apk...

llutt

PS: it also successfully installs at my friend's device. It is only stuck when I try to run in my phone. Also other projects are successfully loaded too, but I even tried to create a new project and copy all files from the old one and tried to run, but that didn't work for me either.



Solution 1:[1]

Run flutter clean and check if you have enough memory on your device.

Solution 2:[2]

I got around this problem by typing this command in the Terminal:

flutter run -d <deviceId>

For my LG phone, it was:

flutter run -d LGUS998d7315d51

Solution 3:[3]

The problem occurs if your device has an incomplete installed app with the same package name.

Solution:

  1. Uninstall any app in your device that has the same package name
  2. See the Settings/app whether it is completely uninstalled or not. If not, uninstall from there also.
  3. If possible, erase your internal storage.
  4. Push your project to GitHub
  5. Delete the project from your harddisk.
  6. Download the project and unzip it
  7. Run it

I lost all four days regarding this problem. I tried all the solutions I found. But at last I solved this issue by doing the above things.

Solution 4:[4]

I tried all the solutions in the previous answers.

What worked for me: just restart your physical device. It will work.

Solution 5:[5]

I also had this issues, I solved this by copying the apk file into my device internal memory and installed it back.

The apk file location build\app\outputs\flutter-apk\app-debug.apk

Solution 6:[6]

I solved that issue by

  1. run flutter clean in external terminal (windows).
  2. completely delete your app in mobile (from storage and private space if have) settings -> app -> selected your app and click "uninstall from all users"
  3. run flutter run in external terminal it's work

Solution 7:[7]

Try this

  1. Run flutter clean
  2. Restart vs code/android studio
  3. Restart your device
  4. Run with flutter run or crtl + F5 for vs code

Solution 8:[8]

Just go to File in Android Studio and click on

  Invalidate Caches / Restart

Like:

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 LITSLINK
Solution 2 Peter Mortensen
Solution 3 Peter Mortensen
Solution 4 Peter Mortensen
Solution 5 Devarajan Mathavan
Solution 6 lahiru dilshan
Solution 7 pintu236
Solution 8 Nisha Jain