I had the same situation. I could not reproduce the behavior. I hope that the detailed information will help you answer.
I was working on a project that required the addition of some JAR dependencies. JAR delays were added to the lib file, and I edited the build.gradle script project to compile them.
I added the dependency for Jackson JSON to the build.gradle file when the problem arose.
While typing “comp comp”, android studio is locked for a moment. All files in the project box have disappeared. Android Studio went through the gradle construct.
I initially, although I inadvertently opened a new empty project. Sorry, my files are gone.
- Android Studio never closes or crashes.
- The folder containing all the project files was completely empty. As if batch deletion happened.
- 'File → Open Recent' showed no evidence that this project was open.
24 , "File → Open Recent" , , .
Disconcerting.