Flutter App stuck at “Running Gradle task 'assembleDebug'… ”

后端 未结 30 3511
你的背包
你的背包 2020-12-08 18:28

When I run the app it get stuck

Launching lib\\main.dart on Lenovo A319 in debug mode...
Running Gradle task \'assembleDebug\'...
(This is taking an unexpec         


        
30条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 19:09

    It is taking time on windows 10 as the Android studio needs firewall permission to connect to the device(AVD). There can be another reason that you don't have downloaded full Android SDK on your machine.
    To check the issue simply run the command on your terminal/cmd/PowerShell command tool.

    flutter doctorflutter doctor

    check if SDK is installed or not. Try to install and accept license using the following command

    flutter doctor --android-licenses

    If this doesn't resolve your problem then go to android studio and Open your Android Studio,

    File-> settings->System settings(left tab) ->Android SDK ,

    go to SDK Tool section in that page,

    untick hide obsolete packages,

    select Android SDL tools(obsolete) and press apply also install other useful tools according to your convenience.

提交回复
热议问题