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

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

    For anybody reading this, I solved this by doing the following:

    1. Open Android Studio->SDK Manager and install API 27 (By default Android Studio only installed the latest (API 28) as at the time of writing and there seem to be issues with using that right now).
    2. In cmd run flutter doctor --android-licenses and make sure you accept all the licenses.
    3. Open Android Studio->AVD Manager and create a new emulator using API 27
    4. Run your app on the new emulator and enjoy!

    Hope this helps :).

提交回复
热议问题