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

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

    Finally i fixed it. The problem is mostly due to android SDK or gradle built tool

    There are different ways you can try to fix it. way 1. check whether google drivers are installed . you can find them in sdk manager of the android studio

    way 2. flutter doctor -v flutter doctor --android-licenses (#this will check whether all the licenses of android are accepted)

    way 3. flutter clean;flutter build apk
    flutter run ( In the start it will take time for assembledeubg so kindly be patient for 7 to 10 mins)

    way 4. If this also do not work flutter clean flutter run (be patient and finally after 5 to 10 min your flutter code will run on the emulator)

    Hope these solutions work for you, If not reply me back.

提交回复
热议问题