Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`svn checkout` fails with the “cannot run program” “cannot find the file specified” error

I'm Checking a sample in google code. It requested me to checkout the source using SVN Checkout. Sine I am using Android Studio, I used the Subversion checkout options in VCS-->Checkout from version control-->Subversion. Howerver I encountered an error. Is their something I have done wrong?

Checking out google sourcecode.

Checkout Google Code

Error = 2

Error Cannot Find File Specified.

As you can see in this, picture you can see the folders and of course the sources but how come it could not find it?

As you can see in this picture, you can see the folders of the sources.

like image 273
The One Avatar asked Sep 10 '25 03:09

The One


2 Answers

The error Cannot load supported formats: Cannot run program "svn": Create process error=2, The system cannot find the file specified indicates that Android Studio / IntelliJ IDEA can't locate Subversion 1.8 command-line client on your machine. Follow these steps to solve the issue:

  1. Make sure that you use the latest version of Android Studio IDE.
  2. Make sure that command-line svn.exe 1.8 client is installed on your system. You can get one at http://www.visualsvn.com/downloads/
  3. Add the command-line client to %PATH% environment variable.
  4. Restart Android Studio.

You may want to read the related blog post about the same issue with IntelliJ IDEA: http://blog.jetbrains.com/idea/2013/12/subversion-1-8-and-intellij-idea-13/

like image 91
bahrep Avatar answered Sep 12 '25 18:09

bahrep


None of the answers here were working for me, though they were on the right track. This was the solution for me:

  • Download SVN command line tool from http://www.visualsvn.com/downloads/ as bahrep mentioned. Stick the binaries somewhere.

  • In IDEA: File > Settings > Version Control > Subversion > And then...

  • Make sure "Use command line client" is checked and select the path of your SVN.EXE.

By default, the path was simply set as svn. I had to change it to c:\wherever\i\put\it\svn.exe

like image 43
cowsay Avatar answered Sep 12 '25 17:09

cowsay