Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio suspended on indexing

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

enter image description here

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 .

like image 415
Mahmood Ali Avatar asked Dec 01 '17 07:12

Mahmood Ali


People also ask

How do I stop Android from indexing?

The way to cancel the build is just simply click on the little red x at the task at the bottom.

What is index in Android Studio?

android.arch.persistence.room.Index. Declares an index on an Entity. see: SQLite Index Documentation. Adding an index usually speeds up your select queries but will slow down other queries like insert or update. You should be careful when adding indices to ensure that this additional cost is worth the gain.

How do I fix Android Studio not working?

Open Start menu > Computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables. Add new system variable JAVA_HOME that points to JDK folder, C:\Program Files\Java\jdk1. 7.0_13\


1 Answers

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

Hope that helps

like image 60
firegloves Avatar answered Oct 18 '22 21:10

firegloves