Indexing freeze with message: Indexing paused due

2020-02-07 15:54发布

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

23条回答
啃猪蹄的小仙女
2楼-- · 2020-02-07 16:30

I invalidated the cache and restarted Android Studio. That worked for me. You can do this by: File > Invalidate Caches / Restart > Invalidate and Restart

查看更多
来,给爷笑一个
3楼-- · 2020-02-07 16:31

Seems like there is an issue with Android Studio itself. I fixed the issue for now by following these steps:

  1. Click File > Invalidate Caches / Restart
  2. On the pop up choose Invalidate and Restart
查看更多
太酷不给撩
4楼-- · 2020-02-07 16:31

Invalidate cache and restart did the work for me. Now, the build is compiling in seconds.

查看更多
Explosion°爆炸
5楼-- · 2020-02-07 16:32

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.

查看更多
ら.Afraid
6楼-- · 2020-02-07 16:35

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.

查看更多
登录 后发表回答