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

后端 未结 30 1862
盖世英雄少女心
盖世英雄少女心 2020-12-08 13:21

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

相关标签:
30条回答
  • 2020-12-08 13:56

    When I switched system image for the emulator from Q to Pie it solved it for me.

    0 讨论(0)
  • 2020-12-08 13:59

    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! ;)

    0 讨论(0)
  • 2020-12-08 14:00

    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
    
    0 讨论(0)
  • 2020-12-08 14:01

    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.

    0 讨论(0)
  • 2020-12-08 14:02

    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

    0 讨论(0)
  • 2020-12-08 14:03

    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.

    0 讨论(0)
提交回复
热议问题