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

后端 未结 30 3508
你的背包
你的背包 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 18:51

    I solved the issue by reinstalling SDK Platform on Android studio for Android API 29

    Tools->SDK Manager-SDK Platform
    

    Next go to

    Android > app > build.gradle
    

    Make sure you also change

    compileSdkVersion 29
    
    targetSdkVersion 29
    

    Be patient, it take longer for the first launch...But, not take forever like before.

    good luck

提交回复
热议问题