Recover file in Android Studio?
you can go to VCS>Local History>show History and find from which Hour/minute you want to revert and hit revert. I've done this before and it saved my life.
Can you find the file in file explorer?
If you can, try to open the file through another explorer
You can find your projects path by right clicking the project and hitting "File Path"
Is there local history available?
Try right clicking the faulty file and checking Local History -> Show History
If you can fetch the local history, right click the history entry and click revert