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:10

This issue coccus randomly in Android Studio V3.+ [Issue tracker:https://issuetracker.google.com/issues/118523471] .

There might be multiple reasons for this issue but it is mainly either ".gradle" related or ".iml" file related IntelliJ/Android Studio configurations.

Possible solutions:

  1. Click on play icon under the processing bar (on the bottom of the android studio). But be aware that multiple clicks may also kill the the indexing process.
  2. Invalidate cache (File -> Invalidate Cache & Restart -> Just Restart)
  3. Clean ((Build -> Clean project) and Rebuild (Build -> Rebuild Project)
  4. Sync Project with Gradle Files: Available options (depending on the Android Studio version) at
    • Tools -> Android -> Sync Project with Gradle Files
    • button available at top left corner in Android Studio's toolbar
    • File -> Sync Project with Gradle Files
  5. Delete the .idea & .gradle folders and .idea & .iml files from the project root directory and re-import the project

I have faced this issue quite a few times and got rid of then by using one or more of above solutions. But in some scenario nothing of the above solutions may work (as recently I get trapped-in). In this case I have to recreate the same project from scratch and copied back the required files into it. But ideally this should not be the solution. Please let me know if any other possible solution is there.

查看更多
SAY GOODBYE
3楼-- · 2020-02-07 16:12

This is an issue in Android Studio since v3.2, I have posted an issue in Android Studio Issue Tracker, it's being finally accepted. Waiting for them to solve it.

Here is the issue tracker, you can follow up from here.

please star the issue as well to help solving it.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2020-02-07 16:13

I faced the same issue with Android Studio 3.2. Invalidated the cache and restarted Android Studio, but it still did not work for me. Then I just re-imported the project and it worked!

查看更多
该账号已被封号
5楼-- · 2020-02-07 16:18

Invalidated the cache -> restarted Android Studio -> re-import the project from the project location. Its worked for me

查看更多
家丑人穷心不美
6楼-- · 2020-02-07 16:18

Stay Connected to internet.Let the batch to be updated.Wait one time and it will be easy the next time. OR...Click on the play button.

查看更多
甜甜的少女心
7楼-- · 2020-02-07 16:20

I faced this issue many times and what I did everytime is:

Firstly, click on the processing bar on the bottom of the android studio.

A pop up window will appear on the screen like this- enter image description here

Click on the red circled Play button and let the process complete.

Please note that you will have to repeat this everytime you face this issue because this is some kind of bug or something in AS version 3.2

Optional: click on (-) minimize button if you want to the pop-up to minimize

查看更多
登录 后发表回答