Recently began to study the use of Android studio for project development, has been using SVN for version management, so want to use SVN in Android Studio, there are many problems in the use process, access to a lot of information and many people, now recorded as follows:
First, the installation configuration:
Previously used Zendstudio and so on are directly installed plug-ins can be, but not here, you need to install the command line function of the SVN client, I use TORTOISESVN, it is said that after 1.7 to start support command line mode, I now In use 1.8.5 version
, the installation must be customized to select command line otherwise it will not be installed
When the installation is complete, open the IDE's setting Configuration panel:
such as the Subersion setting under Path Version Control:
Use the Command line Client to browse to the Svn.exe file path for your local installation of TortoiseSVN, such as: (Note that there is a browse button at the far right of the input box, it may not appear, the stretched window is visible)
Once configured, the installation is complete
Then the toolbar is like this
Note: In addition to the above configuration, but also need to be particularly important settings, before the card is here, here also need to set up in the VCs;
After setting:
Second, import, check out SVN This is relatively simple:
Under the CVS menu there is an Import into Version Control to choose SVN.
Check out is similar, or you can check out and build the project from SVN in a new project
In addition: The bottom section of the Browse VCS Repository can browse the remote SVN server files and delete the operation
Iii. Ignore specifies that files or directories are ignored
The ignore configured in the Androidstudio Setting panel seems to have little effect,
Let's look at the display of the ignored directory (darker yellow-green color)
In Setting configuration, the main ignored directories and files: (Although the settings here do not work, but still set it down)
The system has two or three files and directories by default, I added the. Gradle. Idea build Directory I think these three directories should not follow SVN, each time the compilation of the local environment is not the same, and I encountered a build and idea under a library file is always conflicting, every A lot of updates, so it was removed.
To add the Ignore by TortoiseSVN:
For updates and submissions
The two small buttons are very operational, the green is commit, the downward blue is the update