Android Studio 2.2 Stuck at Building Gradle Project Info on importing existing project

41,729

Solution 1

I had deleted all gradle folder and copied it from another project and pasted it, this worked for me

Solution 2

There is downloading of Gradle going on at the background. Just wait for it to finish.

Solution 3

Just Remove Gradle files from your project folder and retry.

Hope this will help.

Solution 4

I also had the problem.

I downloaded the gradle 3.5 binary distribution zip file, deleted the gradle folder from my project, then went to settings of Android Studio, checked "Offline work", used "Use local gradle distribution" and set the path of unzipped gradle folder on the "Gradle home" and "Service directory path" text fields.

Then I tried to open the project with Android Studio 2.3.

Then a message is shown and I pressed cancel to manually configure the gradle, then I located the unzipped gradle folder again. This solved my problem.

Solution 5

Try the following :

1> Try Removing(Deleting) the gradle files from the project folder and then re-try.

2> Try to go into the android studio and then Files>Invalidate Caches/Restart and then try.

3> If the above two don't work do check the gradle,android Studio versions and see if those need updating.

4> Above 3 usually work for me , if it still persists, then you need to check the dependencies for the project. Also try importing some other project and if the same issue occurs, try a new installation of a STABLE version of the android studio.

Share:
41,729
MBH
Author by

MBH

Software Engineer, Addicted to writing Mobile Applications for both platforms Android and iOS.

Updated on July 09, 2022

Comments

  • MBH
    MBH almost 2 years

    I am using Android studio 2.2 on windows 10.

    I am trying to import an existing android project. The problem that it took forever and still showing the message

    Building 'ProjecTName' Graedle project info

    after that android studio is totally getting stuck and i kill it from the task manager !

    I tried the available options on Android Studio list:

    1. Open an existing Android Studio Project

    2. Import Project (Eclipse ADT, Gradle, etc.)

    test

  • MBH
    MBH almost 8 years
    it worked ... i deleted all gradle folder and copied it from another project and pasted it, this worked for me
  • MBH
    MBH almost 8 years
    the first option which worked for me, i already use Android studio 2.2 which is STABLE version .. thank you
  • Ravindra Shekhawat
    Ravindra Shekhawat over 7 years
    looks so stupid but ...... very true ..you can check in network operations in background for android studio :-D
  • Mark Amery
    Mark Amery over 7 years
    Took a couple of minutes for me to progress past this step.
  • CodeToLife
    CodeToLife about 7 years
    @MBH yes, as you said I just replaced that 'gradle' folder with one of a project I worked on recently.
  • MBH
    MBH about 7 years
    I waited more than half an hour once. But it doesn't look like always it is network problem.
  • Muhammad Warraich
    Muhammad Warraich almost 7 years
    Same here. It took 3 to 4 minutes. Just wait for it.
  • George Daramouskas
    George Daramouskas almost 7 years
    That seems to be the case, we should get informed of the operation somehow though...
  • MBH
    MBH almost 7 years
    from where exactly ?
  • Nishchay Zacariah
    Nishchay Zacariah almost 7 years
    Windows + R, type in temp or %temp%
  • MBH
    MBH almost 7 years
    I am a Mac user :( Thanks for sharing
  • diogo
    diogo almost 7 years
    Why did you then marked yours as the right if @lRadha has answered first?
  • Dat TT
    Dat TT almost 7 years
    Thanks! This works for me. The actual path is c:\users[username]\.gradle I ran a couplel of react-native projects before
  • Naman
    Naman over 6 years
    @MBH Really? Your screenshots are of Windows 10
  • Liakat Hossain
    Liakat Hossain over 6 years
    @nmnsud everyone wanted to be a mac user coz of price!
  • Neon Warge
    Neon Warge over 6 years
    A definite progress bar and a progress message wouldn't hurt. But Google..........