android studio cannot run program svn,Intellij idea subversion checkout error: `Cannot run program “...

可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

I am using intellij idea 13.0. When I am trying to checkout from subversion I am getting error Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified

How do I fix this?

回答1:

I solved this by uncheking the "Use command-line client" option from Subversion settings.

This works with version 1.6 and 1.7 only. See @Vic's answer for SVN version 1.8.

回答2:

Check my solution, It will work.

Solutions:

First Download Subversion 1.8.13 ( 1.8 ) Download link ( https://www.visualsvn.com/downloads/ )

81bc16fe61aa30bf76d8ff359a10bd20.png

Then unzipped in a folder. There will have one folder "bin".

Then

Go to settings - > Version control -> Subversion

Copy the url of your downloaded svn.exe that is in bin folder that you have downloaded.

follow the pic:

6b45b28ec9e0775c10d8138543e5f3da.png

Don't forget to give the end name like svn.exe last as per image.

Apply -> Ok

Restart your android studio now.

Happy Coding!

回答3:

If you're using IntelliJ 13 with SVN 1.8, you have to install SVN command line client. Please see more information here: Unlike its earlier versions, Subversion 1.8 support uses the native command line client instead of SVNKit to run commands. This approach is more flexible and makes the support of upcoming versions much easier. Now, IntelliJ IDEA offers different integration options for each specific Subversion:

回答4:

Disabling Use command-line client from the settings worked well form me on IntelliJ Ultimate 14.0.

回答5:

Under settings ->verison control -> Subversion, uncheck use command line client. It will work.

回答6:

In IntelliJ Idea 2017.1 you can use the embedded SVN client that sadly is not enabled by default. Here's how you can activate it.

1) Open IntelliJ Idea

2) Menu Help > Find Actions...

21e6493201f24963c84d95aa9d53dcf3.png

3) Type subversion to gain access to the subversion related settings. Choose the item Subversion Settings as highlighted in the following picture.

923a0d274145df845826644dffe77a53.png

4) Finally, be sure to uncheck the option Use command line client.

b152b18607695be9276ce1011087f998.png

From now on, in the current project, you'll use the embedded subversion.

回答7:

Basically, what IntelliJ needs is svn.exe. You will need to install Subversion for Windows. It automatically adds svn.exe to PATH environment variable. After installing, please restart IntelliJ.

Note - Tortoise SVN doesn't install svn.exe, at least I couldn't find it in my TortoiseSVN bin directory.

回答8:

Seems related to this issue IDEA-117518

回答9:

For me, on Debian GNU / Linux, installing the subversion package was the solution # aptitude install subversion subversion-tool

回答10:

Fix of this problem is add SVN directory(C:\Program Files\TortoiseSVN\bin) to Path system property

回答11:

Disabling Use command-line client from the settings on IntelliJ Ultimate 14.0.3 works for me.

I checked IDEA's document, IDEA don't need a SVN client software anymore. see below description from https://www.jetbrains.com/idea/help/using-subversion-integration.html

=================================================================

Prerequisites

IntelliJ IDEA comes bundled with Subversion plugin. This plugin is turned on by default. If it is not, make sure that the plugin is enabled. IntelliJ IDEA's Subversion integration does not require a standalone Subversion client. All you need is an account in your Subversion repository. Subversion integration is enabled for the current project root or directory.

==================================================================

回答12:

If you're going with Manoj's solution (https://stackoverflow.com/a/29509007/2024713) and still having the problem try switching off "Enable interactive mode" if available in your version of IntelliJ. It worked for me

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值