Android studio suspended on indexing

2019-04-19 07:03发布

问题:

When i run android studio it freeze on indexing and show me message:

indexing suspended (context: Gradle Sync)

it take more then 42 min and still show me this message i can't stop process and almost every thing is disable

Solutions I've tried

1- enable offline mode

2- select local gradle

3- invalidate caches/ Restart

but no one of this is solve my problem .

回答1:

I've solved closing project (Menu File -> Close Project) and reopening it selecting his build.gradle.

Hope that helps



回答2:

In my case, syncing the project with file system helped. But the project uses react-native and many gradle modules are located in the node_modules folder which could be updated by yarn/npm.