I've updated Android Studio to version 3.2.
After that update one of my projects don't want to index.
It freezes with the message
"Indexing paused due to batch update".
How can I fix this?
File gradle-wrapper.properties
:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
File gradle-properties
:
org.gradle.jvmargs=-Xmx1536m
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true
Just Restart (
File > Invalidate Cache & Restart > Just Restart
)I faced this issue in Android Studio 3.+ when forcefully close Studio in between some gradle process.
I had the same issue and I fixed by do the following: Click File --> click on Invalidate Caches / Restart You will see a pop up--> select Invalidate and Restart
Click on play button twice and then go to file->Invalidate Caches / Restart...
repeat this process every time whenever you face this issue.
I faced the same issue, because my AS version is not the same with gradle plugin's version.
Click on the play button to the right of the progress bar.
I did it by exporting the project into zip file and open it like normal. you can export by clicking the file navbar and choose export to zip file