drmrbrewer
drmrbrewer

Reputation: 12989

Android Studio corruption strangeness: opening completely the wrong file

Somehow my Android Studio project has become strangely corrupted.

When I open an xml layout file in res/layout it is actually opening a java file from the main source folder.

And opening `AndroidManifest.xml' opens some binary file from somewhere else.

But when I open these files from outside Android Studio, they're all fine and correct.

I've tried cleaning and rebuilding project, and I've tried invalidating caches and restarting, but still the same... what next?

Upvotes: 0

Views: 90

Answers (1)

drmrbrewer
drmrbrewer

Reputation: 12989

As reported here, the answer is to close Android Studio, delete the content of the following folder, then open Android Studio again:

C:\Users\my_user_name\.AndroidStudio3.4\system\caches

Upvotes: 2

Related Questions