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

后端 未结 30 1858
盖世英雄少女心
盖世英雄少女心 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:52

    In my case problem was with installation of apk. Manual installation of apk works in my case

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

    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.

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

    I closed my emulator and android studio and then restarted it.

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

    I got this issue when I uninstalled the flutter app from homescreen. I could not get it installed through android studio or through flutter install commands. What worked for me was to generate the release apk.

    flutter build apk

    And put the apk in the device and install it again manually through the device. After which there was no issues with installing through both android studio or flutter commands.

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

    This happened for me because there was a typo in gradle.properties. I assume it had something to do with the refactor tool in Android Studio. Two settings ended up on the same line like this:

    android.enableJetifier = trueandroid.enableR8=true
    

    When I fixed it, it worked again.

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

    I ran into this issue after changing my package name. Following the instructions on this post helped me: Flutter App is not working after changing package name

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