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

后端 未结 30 3553
你的背包
你的背包 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:04

    This worked for me.I got an issue with license acceptance. First you need to go through the flutter directory and then run the command

    C:\Users\thrishool\flutterProjects\flutter>flutter doctor
    

    Then it will display if everything is fine or not.I got an issue that, I didnot accept all the licenses.So you need to accept them all.Now type this in cmd

    C:\Users\thrishool\flutterProjects\flutter>flutter doctor --android-licenses
    

    Accept all the licenses and you are good to go.

提交回复
热议问题