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.
Solutions I've tried
None of the above solutions worked.
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!!!