Vous êtes ici

Android Studio and Subversion

iconI decided to switch to Android Studio two weeks ago. Seems quite a nice development environment, but I'll need some time before getting proficient at it. Recently, I have spent a few hours trying to understand how to set up a project so that it is versioned in Subversion. After several trial and error cycles, I discovered one working process. Here it is:

  • using VCS / Browse VCS Repository / Browse Subversion Repository..., display repository window
  • create target remote folder in repository: in SVN Repositories window, right-click on a folder and select New / Remote Folder...
  • VCS / Import into Version Control / Import into Subversion...
  • close the project
  • delete it from Android Studio, and delete associated folder hierarchy
  • from Android Studio start up window, Check out from Version Control the imported project
  • let Android Studio open the project
  • enable version control for the project: Android Studio / Preferences / Project Settings / Version Control: select Subversion

I'm quite sure an easier way exists, but for now that's the only solution I found...

Note: this is for OS X