Android studio stuck at Refreshing Gradle project

前端 未结 17 1931
别那么骄傲
别那么骄傲 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:27

    In Android Studio select:
    File\Settings\Build, Execution, Deployment\Build tools\Gradle
    click on the button on the right side showing local gradle distribution path.
    you will be taken to the gradle folder.
    click ok in this dialog box and your path will be updated!

    restart android studio and you are good to go!

    The Problem:
    in my case path selected after the update was of older version e.g:
    C:/Program Files/Android/Android Studio/gradle/gradle-2.4
    However, after the update it was changed to:
    C:/Program Files/Android/Android Studio/gradle/gradle-2.8

    P.S:
    This solution also resolves following error:
    buildTypes cannot be applied to groovy.lang.Closure

提交回复
热议问题