5

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Aayush Neupane
  • 1,066
  • 1
  • 12
  • 29

9 Answers9

0

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

LITSLINK
  • 36
  • 3
  • Can you please show your `flutter doctor` output? Also, are you able to install a build manually by `adb install build/app/outputs/apk/debug/app-debug.apk`? – LITSLINK Jan 23 '20 at 12:00
0

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
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
0

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Nazmul81
  • 150
  • 1
  • 3
  • 13
0

I tried all the solutions in the previous answers.

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
0

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
lahiru dilshan
  • 690
  • 9
  • 13
0

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
pintu236
  • 148
  • 2
  • 11
0

Just go to File in Android Studio and click on

  Invalidate Caches / Restart

Like:

Nisha Jain
  • 637
  • 6
  • 14
0

This problem is caused by incomplete installation of the app. I have solved this problem by uninstalling the app from the device using Terminal.

Type in: adb uninstall app_package_name in the terminal.

starball
  • 20,030
  • 7
  • 43
  • 238
-1

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