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

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.

查看更多
淡お忘
3楼-- · 2020-02-07 16:21

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

查看更多
Juvenile、少年°
4楼-- · 2020-02-07 16:21

Click on play button twice and then go to file->Invalidate Caches / Restart...

repeat this process every time whenever you face this issue.

查看更多
太酷不给撩
5楼-- · 2020-02-07 16:23

I faced the same issue, because my AS version is not the same with gradle plugin's version.

查看更多
对你真心纯属浪费
6楼-- · 2020-02-07 16:24

Click on the play button to the right of the progress bar.

查看更多
我只想做你的唯一
7楼-- · 2020-02-07 16:25

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

查看更多
登录 后发表回答