138

I set up my Github with android studio, everything worked fine, the problem now is though, that I can't seem to turn off, or get out of version control to use the IDE normally again.

This means that errors aren't shown, and it is really hard to debug because of this.

So how do I turn off version control (VCS) in Android Studio?

Daniel Scott
  • 1,867
  • 3
  • 13
  • 18
  • `This means that errors aren't shown`. Huh? – Simon Jun 10 '13 at 17:39
  • As in if you spell a word wrong or variable name wrong, the error doesn't show when in VCS mode. It means you might not see it until running the application when it crashes. – Daniel Scott Jun 10 '13 at 17:41

6 Answers6

256

To disable VCS in Android Studio on a Mac do the following:

Android Studio > Preferences...

enter image description here

In the Preferences window, select Version Control and under Directory choose VCS dropdown to be <none>

enter image description here

Don't forget to click "Apply" in the general Preferences buttons at the bottom.


For 2022...

It would seem that Android Studio nowadays does not automatically start with version control turned on for a new project.

The default seems to be "off" at the beginning of a new project.

(It does conveniently make a ".gitignore" file for you but it does not default to trying to use version control.)

However, if later you do manually yourself start using git in the folder in question, Studio does turn on vcs inside Studio, i.e. exactly as seen in the image above. In that case you'll have turn it off inside Studio, exactly as shown above.

Fattie
  • 27,874
  • 70
  • 431
  • 719
Adam Johns
  • 35,397
  • 25
  • 123
  • 176
64

In Android Studio 1.2.x

FILE -> SETTINGS -> VERSION CONTROL

Here the root is shown, Press (-) button to delete.

Krish Munot
  • 1,093
  • 2
  • 18
  • 29
Hemant Sharma
  • 1,239
  • 12
  • 9
20

The other answers weren't working for me, so I am adding my solution.

This message was driving me crazy:

enter image description here

I had trouble with the other suggestions, as my settings was not allowing me to save changes for version control none.

enter image description here

So I went into Version Control / Ignored Files and removed all ignored files for that project.

enter image description here

enter image description here

Then when I clicked back on Version Control

enter image description here

I found this in this answer here.

Community
  • 1
  • 1
19

VCS is a project specific setting which you can modify by going to File -> Settings then checking under the Version Control heading.

Alternatively, you could disable a specific VCS plugin under the Plugins heading.

Note: I have not used GitHub as VCS, but you should still be getting error display (syntax checking) in the IDE. VCS usage should not disable that, since that would make the use of an IDE completely pointless.

free3dom
  • 18,729
  • 7
  • 52
  • 51
  • 6
    +1 for plugin drop. If you don't want to keep doing this per project, or deal with the "unregistered roots" issues, disabling the plugins (Git, GitHub, Subversion, Mercurial) is the only true way to go. I use version control from an external shell or GUI, and never want it in my IDE. – delrocco Feb 20 '20 at 02:03
  • @delrocco Yeah, the "unregistered roots" issue drove me crazy and this solved the problem. – Jenix Jun 24 '20 at 18:50
8

You can delete vcs.xml file and it will remove the VCS connected with your app. 'vcs.xml' file can be found in this location "YourProject\ .idea\vcs.xml"

Ajith Pandian
  • 1,332
  • 13
  • 21
5

Project > .idea > vcs.xml

enter image description here

change vcs value to 'none'

Note : only current enabled project.

Manohar
  • 22,116
  • 9
  • 108
  • 144
Prasanth John
  • 146
  • 1
  • 4