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 unexpectedly long time.)
It never initialize Gradle nor the dependencies
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