Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter stuck at Installing build\app\outputs\apk\app.apk

When I run:

$ flutter run

I'm getting a prompt on my mobile device asking if I want to install the app on my device. I give yes, then nothing happens!

It's stuck here:

Launching lib/main.dart on POCO F1 in debug mode...
Initializing gradle...                                           1.5s
Resolving dependencies...                                        9.2s
Gradle task 'assembleDebug'...                                  22.9s
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                     14.9s

Then nothing.

like image 536
Vishnu Avatar asked Nov 20 '18 13:11

Vishnu


People also ask

How do you solve if flutter run stuck at installing APK?

To do this, go into your device or emulator: Settings > Developer options , Change the buffer size to a higher number. Then run flutter run -v again.

Why does it say app not installed APK?

Insufficient Storage- If your Android device is too full, it causes the package installer to malfunction, leading to the 'App not Installed' pop-up. Even a corrupted Internal Storage Card or an SD card which is not mounted properly may lead to clogged storage and thus give you the App not installed error message.

What is app APK in flutter?

APK (Application Package File) is a format used by Android operating systems for distribution and installation. After you build an application, it's quite common to build APK files to be tested across different devices.


Video Answer


2 Answers

For me, the error was due to my work android profile. I uninstalled the debug app in personal profile but it remained in the work profile, once I uninstalled it there and ran flutter run. It worked without any issues. So, First, ensure you deleted the App in both personal and work profile And then run

flutter run

Update:

By profiles I meant, android user profiles on your phone.

like image 142
Stack learner Avatar answered Oct 19 '22 19:10

Stack learner


I removed debug application from Android menu, and then I ran into the same issue. I restarted my phone, but it wasn't very helpful. My solution was to remove the application completely and reinstall it by hand:

  1. Connect to the device with ADB

  2. Use adb uninstall com.example.application.name

  3. Use adb install C:\PathToYourProject\build\app\outputs\apk\app.apk

By the way, in such uneasy scenarios, flutter run --verbose could provide more detailed information what went wrong.

like image 44
PsychoX Avatar answered Oct 19 '22 20:10

PsychoX