skip to Main Content

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!
enter image description here

Can anybody tell if the problem is due to the following problems in project structure-
enter image description here

2

Answers


  1. 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:

    enter image description here

    And then under Additional run args: putting -v to run in verbose mode.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search