Home > database >  Unable to open file in Android Studio Chipmunk
Unable to open file in Android Studio Chipmunk

Time:05-31

I am using Android Studio Chipmunk | 2021.2.1 build and facing an unusual error with opening files from Git section at bottom.

How to reproduce :

  1. Open Android Studio
  2. Find Git option at the bottom
  3. Now choose any branch from the console
  4. Select any commit
  5. Try opening the changed file

Error : The file doesn't open.

I am not sure if I am the only one facing this issue. This was not before but I think after updating I did something wrong. Can't say if it is related to Android Studio or most probably my mistake but if you have any idea how to resolve let me know.

CodePudding user response:

I am not sure the problem you face. Maybe you can take a photo in the question.

I have a problem which is when i open one change file it just show the "blank file".When i upgrade to Android Studio Chipmunk | 2021.2.1 Patch 1, it solved.Maybe you can try this.

And I am sorry, i use a answer but not a comment because my reputation is not enough.

CodePudding user response:

My guess is that you are trying to open a file that was created and committed on a branch other than the one you currently have checked out. Try checking out that other branch before trying to open the file again.

  • Related