Android Studio is broken after a computer shutdown

I closed my laptop (with a running Android studio) so that the sleep mode was only to completely close it when I get home. And now Android Studio is completely broken. I found that one java file is damaged, which is not a big deal, I can rewrite it. But now I get the message "Can not solve symbol" xxx "" for EVERYTHING in the project. I get an error for all imported, even my own Android / Java libraries. He does this for all my projects, simple gradient synchronization or rebuilding the project did nothing. I do not know what to do to fix this problem. http://puu.sh/c3eMs/30fcdd99a7.png

Now, looking at the screenshot, workpace.xml (the project that was opened during shutdown) also got damaged, and unfortunately, I do not have a backup copy of it. For some reason, even the github repository does not have.

Any help would be greatly facilitated to work again in android sudio. Reinstalling it will be my last resort.

+4
source share
3 answers

In the screenshot, it looks like you are saving the project to Dropbox. This is not recommended.

Try the following:

. Android Studio, File → Invalidate Caches/Restart. Android Studio . , .

+6

:

  • File- > Invalidate Caches/Restart.

  • .

+4

In order not to reinstall Android Studio, try deleting the .idea and .gradle folders inside your main project folder, and after that again do File-> Restart and invalidate in Android Studio. In my case, this works great :)

0
source

All Articles