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
- I uninstalled it and installed it again
- I unplugged and plugged in my device
- I disabled android indexing from setting
None of the above solutions worked.