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
When I switched system image for the emulator from Q to Pie it solved it for me.
I had a problem with this when I uninstalled my app from a device, but unfortunately, I didn't uninstall it from all the users that are on my phone. Even Guest kept a version of my app in it, so I solve this issue with uninstalling all version of my app for all users. After that my app was installed without a problem. Sadly we don't get any error message that something is not right if this happens, so I hope this was a case for you guys and that I help you solve it! ;)
Very easy solution, just uninstall the app using below command even you did not found app on your device or emulator. This is because sometimes even you uninstall app from device from setting, that app still remains there for other users (Multi user feature in devices). So to completely remove the app from device, use below command and then try to install the app again (Restart the android studio to terminate process if it is already running)
adb uninstall <package.name>
e.g.
adb uninstall com.example.myfirstflutterapp
I solved this by manually installing the apk file generated in the builds folder. After that running flutter run
runs the app on my phone.
It is also happenning caused by flutter plugins that doesn't support android api 28.
In my case it caused by this plugin https://pub.dev/packages/connectivity
Firstly i removed app with package name on command line. If you do not know package name you can check applicationId in app/build.gradle .
adb uninstall packagename
After then it works.