androidindexingvirtualboxgenymotionfreeze

Android Studio freezes on indexing


my project was working well but suddenly when I ran it on my phone, Android Studio freezes and I should stop it from task manager. before this happens I installed "Geny motion" & "Virtual Box", but when the error occurred I uninstalled them. but the problem insisted.

android studio freezes on indexing

Solutions I've tried

  1. I uninstalled it and installed it again
  2. I unplugged and plugged in my device
  3. I disabled android indexing from setting

None of the above solutions worked.


Solution

  • I had today this exact problem. None of the above helped me until I found simple solution here Just run File -> Invalidate Cache and Restart That simple and it works!!!