Android studio stuck at Refreshing Gradle project

前端 未结 17 1891
别那么骄傲
别那么骄傲 2021-01-31 15:01

Updated Android studio to 1.2.2 and the background process wont end.(Refreshing \'MemoryCards\' Gradle project).

It has been more than an hour now and its still busy?

相关标签:
17条回答
  • 2021-01-31 15:33

    I had the same issue. I just updated my android studio to 2.0 on ubuntu 14.04. This issue arose for one of the project and it was solved through a answer here which seems unrelated to this problem !!

    If you are using Android Studio 2.0 Beta, this issue might appear (more likely if you are working on NTFS filesystem) and it seems like the "Instant Run" is the culprit. Search for "Instant Run" in settings and uncheck the box

    Posting here to an old question - maybe somebody else might me stuck on this aswell.

    0 讨论(0)
  • 2021-01-31 15:33

    This happened to me quite a few times and there is no single solution.You should try some of the solutions mentioned below.

    1. File -> Invalidate Caches / Restart
    2. Update Android studio and Gradle to the latest version
    3. Select the correct Gradle distribution by going to Settings/Preferences -> Build,Execution, Deployment -> Gradle and select the path for local Gradle distribution

    4. Restart your computer

    0 讨论(0)
  • 2021-01-31 15:33

    I run into this problem on Windows 7 after an update of the Android studio and this works for me:

    Run the Android Studio with Administrative Privileges.

    0 讨论(0)
  • 2021-01-31 15:33

    if gradle has downloaded correctly and you just have problem with this project, follow these steps:

    1. Delete .gradle folder from your project's root.
    2. File > Invalidate Caches/restart.

    Note: if android studio didn't restarted, kill it's process in Task Manager.

    Some other solutions:

    • Adding android studio to Firewall and Antivirus exceptions (or turn off both temporary)
    • Adding mavenCentral() to project build.gradle after jcenter() line.
    0 讨论(0)
  • 2021-01-31 15:34

    These steps work for me :

    1. Close android studio first
    2. Go to folder C:\Users\.gradle and delete that folder.
    3. Then in gradle folder create gradle.properties file and add following lines.
     org.gradle.daemon=true
     org.gradle.parallel=true
    
    1. Open android studio
    0 讨论(0)
  • 2021-01-31 15:38

    As this answer suggests, Removing .gradle directory from home helps solving this problem in some cases.

    0 讨论(0)
提交回复
热议问题