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
I invalidated the cache and restarted Android Studio. That worked for me. You can do this by:
File > Invalidate Caches / Restart > Invalidate and Restart
Seems like there is an issue with Android Studio itself. I fixed the issue for now by following these steps:
File
>Invalidate Caches / Restart
Invalidate and Restart
Invalidate cache and restart did the work for me. Now, the build is compiling in seconds.
Pressing the play button worked for me. It finished indexing and installed the apk in seconds. The catch is that I have to do this every time and batch does not seem to update.
I saw this error and none of the solutions posted here worked for me. I had a specific scenario (see below), and I could get rid of the problem in my specific scenario. Not sure if the OP had the same scenario, by here are my two cents:
In my specific case I had two projects open in Android Studio, where one of the project was from a sshfs-mounted directory (the other project was local to my computer). I believe that made Android Studio throw the "Indexing paused due to batch updated" message on, strangely, both the projects.
To get rid of the error on the local project, I had to close the remote mounted project. On closing that project, the message was gone for my local project.
Hope that helps.