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
In my case I forgot to download Google Web Driver. It’s running once I downloaded Google Web Driver.
This problem occurred on my system because of the Zen Kernel.
I installed the Linux-LTS kernel and started system using this.
Then my project backed to compile again.
Just connect with internet then disable your windows defender/firewall. It works for me.
I stumbled on this problem when I was running my app without debugging it. Theres two option
I was doing the second option the whole time which got me stuck in that running graddle loop. I fixed my problem with the first option.
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
Here is solution in my case.
cd android
./gradlew clean
./gradlew build
or you can combine both commands with just ./gradlew clean build
(Thanks @daniel for the tip)PS: Delete gradle in case of all that steps don't work