0

When I open a project, every Java file displays with a J icon instead of C as normal.

When I open manifest file, it shows code from another file. enter image description here

When I open one of the .java files, it shows the manifest's content. enter image description here

I am using version Arctic Fox 2020.3.1 patch 3.

Henry Twist
  • 5,666
  • 3
  • 19
  • 44
Jacky
  • 133
  • 1
  • 13
  • 1
    just transfer your code to another location and open again your code in android studio – Deep Parsania Nov 01 '21 at 07:38
  • great, it works. But is there anyway I can keep this old location? I don't want to change the project path. – Jacky Nov 01 '21 at 09:00
  • Yes once you change location then keep in your old location i think its work – Deep Parsania Nov 02 '21 at 11:11
  • Does this answer your question? [Android Studio shows wrong file contents](https://stackoverflow.com/questions/53249677/android-studio-shows-wrong-file-contents) – nbystndr Dec 21 '21 at 14:09
  • 1
    I don't know, I used the solution of @DeepParsania. Maybe I'll try your link next time it happens. – Jacky Dec 23 '21 at 00:52

1 Answers1

-1
  1. Close Android Studio
  2. Delete the .gradle folder and restart Android Studio
  3. Wait for some time to sync the Project.
  4. Just do Clean project and you are good to go

That's it. Your Issue will be fixed.

Sainita
  • 332
  • 1
  • 4
  • 16