David Airapetyan
David Airapetyan

Reputation: 5600

Android Studio: Subversion files are marked as unversioned

I have added my Android Studio project to Subversion. When I go to changes, all of my files are listed under "Unversioned Files". I have tried opening from Subversion by selecting "Check out from Version Control", but even after doing this I ended up with all files marked as Unversioned.

If I try to add those files, I get the following error: Error:Cannot find CVSROOT for file ...

How do I get Android Studio to properly work with SVN?

Upvotes: 4

Views: 3971

Answers (1)

David Airapetyan
David Airapetyan

Reputation: 5600

Ah, this is really silly, but took me forever to find out. By default, Android Studio seems to pick CVS as the version control for the project, even though I was checking the project out from Subversion! Bug, AFAIK.

Here is the fix:

  1. File | Settings
  2. Under project settings on the left, select Version Control
  3. On the right, select Subversion from the dropdown next to the directory (VCS column)

Problem solved!

Screenshot of the settings page

Upvotes: 5

Related Questions