Android Studio SVN configuration

if we try add new dependency jar file in Gradle file, it was not getting synced properly. After observing the log file we found an exception and its related to Android studio SVN.

java.io.IOException: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
    at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:261)
    at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:248)
    at org.jetbrains.idea.svn.commandLine.CommandExecutor.createProcess(CommandExecutor.java:197)
    at org.jetbrains.idea.svn.commandLine.CommandExecutor.start(CommandExecutor.java:133)
    at org.jetbrains.idea.svn.commandLine.CommandExecutor.run(CommandExecutor.java:262)
    at org.jetbrains.idea.svn.commandLine.CommandRuntime.runWithAuthenticationAttempt(CommandRuntime.java:62)
    at org.jetbrains.idea.svn.commandLine.CommandUtil.execute(CommandUtil.java:206)
    at org.jetbrains.idea.svn.commandLine.CommandUtil.execute(CommandUtil.java:189)
    at org.jetbrains.idea.svn.commandLine.SvnCommandLineInfoClient.execute(SvnCommandLineInfoClient.java:120)
    at org.jetbrains.idea.svn.commandLine.SvnCommandLineInfoClient.issueCommand(SvnCommandLineInfoClient.java:104)
    at org.jetbrains.idea.svn.commandLine.SvnCommandLineInfoClient.doInfo(SvnCommandLineInfoClient.java:90)
    at org.jetbrains.idea.svn.commandLine.SvnCommandLineInfoClient.doInfo(SvnCommandLineInfoClient.java:232)

Here are the steps to make SVN settings in Android studio.

1) Download Apache command line subversion for Android Studio
2) Unzip the SVN and place it in some location
3) Android Studio –> File –> Settings –> Subversion –> General
4) Check Command line client & update the SVN exe path, refer below image.

Android_Studio_subversion

Presentation Tab

presentation tab

Network Tab

Network Tab

Now sync again in Gradle & see the magic. sync will be successful and build the project.