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.
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.
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.
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.
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
By profiles I meant, android user profiles on your phone.
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:
Connect to the device with ADB
Use adb uninstall com.example.application.name
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With