可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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.
Error = 2
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?
回答1:
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:
- Make sure that you use the latest version of Android Studio IDE.
- 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/
- Add the command-line client to %PATH% environment variable.
- 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/
回答2:
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
回答3:
I am not sure if accepted answers works. But Android Studio-> Settings->Subversion-> Uncheck "Use command-line client" worked for me!
回答4:
I Have Android studio version 0.8.14 Here is What I have done
Go to settings-> (Preference in Mac)->subversion-> in general tab uncheck the three box :
- User Command Line Client
- Use system default blalbala
- Update Administrative blabla
And go to Network Tab : select SSL Protocol to : SSLv3
Hope it Works. mine working like a charm.
回答5:
An easier way for fixing this error, if you are on a Windows platform would be installing SVN directly from this download source http://sourceforge.net/projects/win32svn/
This runs an installer that automatically creates directories, and registers SVN routes for future command line use.
回答6:
I've got Android Studio v1.4.1 and...
- Check that the SVN plug in is present and activated. (/File/Settings, Subversion Integration should be in the list.
- / File/ Settings/ Version Control/ Subversion/ Uncheck use command line client
- Test communicating with the repository via / VCS / Browse VCS Repository / Browse Subversion Repository. The SVN Repositories window should appear and you can add your repository there and see what is inside that repository.
By default Use command line client is checked but you can change that with / File / Other Settings / Default Settings / etc. etc.
回答7:
Follow easy steps:
Download Apache Subversion command line tools from below url
https://www.visualsvn.com/downloads/
extract the folder and save to some location and copy the path of folder now in android studio
Android Studio-> File->Other Settings->Default Setting->version control
now here only check use command line client and paste the above folder path.
now you can give path of sub version.