Indexing freeze with message: Indexing paused due to batch updated

后端 未结 23 1143
独厮守ぢ
独厮守ぢ 2020-12-12 15:43

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

23条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 16:11

    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.

提交回复
热议问题