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

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

    How are you !,

    After many attempts, nothing they recommended worked for me.

    My problem was that I had * .dart files with many lines of code to perform SQL create and insert operations initially in SQLite, I removed those 4072 lines of operations, the file was reduced in size and I no longer had to compile a very code file long, instead, I preloaded the database into assets, and it worked flawlessly! ..

    The message that the operation is taking a long time no longer appears, I hope it serves you.

    Before, when long file size

    After, without SQL code operations

提交回复
热议问题