Android Studio: Subversion files are marked as unversioned

强颜欢笑 提交于 2019-12-20 02:22:35

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/24215368/android-studio-subversion-files-are-marked-as-unversioned

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!