0

Every time I open the Android Studio IDE project or create a new flutter project, I have this infinite loading issue :

"Importing android Gradle project: Gradle build model "

Screenshot gradle

This seems to happen only when creating flutter project, specifically on the android module

Assumption :

  • One possible cause could be a URL block, (I'm not using any firewall nor Antivirus software related or country block nor proxy)

Note: I have already tried reinstalling SDL Tools and gradle (adb, build tools...)

Note 2: Yes I can still minimize this and continue the work without any issue but If I try to close the IDE it says there's still a background task working

Edit: I have already reported this on google issuetracker, In case someone came across this I'd like to know how to solve this

I'm Leaving my config used below :

Gradle used : Default 7.2

JDK used : Embedded 11.0.11

Flutter version : 2.10.1

Git : 2.35.1.2

Android Studio Bumblebee | 2021.1.1 Patch 1 Build

zakiblacki
  • 79
  • 9
  • open the android directory of your app using android studio and see if IDE gives you more info about it. – Payam Asefi Feb 12 '22 at 13:31
  • I think it's because every time I make a change gradle is autosaving and building at the same time but I haven't found any option related to this in the IDE configuration – zakiblacki Feb 12 '22 at 13:35
  • Does this happen if you also create a new project? – Payam Asefi Feb 12 '22 at 13:39
  • Yes, gradle keeps building, but only flutter project, regular android project doesn't have this issue – zakiblacki Feb 12 '22 at 13:46
  • did you try fixing it with [these methods](https://stackoverflow.com/questions/29391421/android-studio-gradle-takes-too-long-to-build)? – Payam Asefi Feb 12 '22 at 13:48
  • Yes I did it didn't help, it could be cause of IDE upgrade worst case I'll have to reinstall everything, I'd like to restore default settings of the IDE not sure where to find this – zakiblacki Feb 12 '22 at 13:51
  • 1
    take a look at [here](https://stackoverflow.com/questions/19384033/how-to-reset-android-studio) – Payam Asefi Feb 12 '22 at 13:53

0 Answers0