Home > Software design >  Problem in building flutter projects in android studio
Problem in building flutter projects in android studio

Time:07-06

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 lib\main.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

CodePudding user response:

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.

CodePudding user response:

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.

  • Related