I am trying to build Flutter Projects in Android Studio. But the process takes a lot of time and the project does not build. I keep getting following messages in the console-
Launching libmain.dart on SM M215F in debug mode…
Running Gradle task ‘assembleDebug’…
There are no errors in any file and the usb debugging is enabled in my phone. Please help!
Can anybody tell if the problem is due to the following problems in project structure-
2
Answers
Like mentioned in the comment, you can do a verbose run to see if/where it gets stuck. You can also do this while running in Android Studio, by clicking on
Edit Configurations...
at the top of the screen:And then under
Additional run args:
putting-v
to run in verbose mode.This task usually takes a very long time and it will be even longer if you have a slower laptop. However, once you get past it, it will become much faster when using hot reload. If flutter doctor doesn’t report anything unusual then maybe give it some more time.