Error “can't use subversion command line client : svn” when opening android project checked out from svn

后端 未结 14 1391
清酒与你
清酒与你 2020-12-02 07:20

I\'m new to Android development and the development tools around it. I have checked out a project from svn using TortoiseSVN client (can\'t manage to do it from within Andro

相关标签:
14条回答
  • 2020-12-02 07:41

    I use the IDE Phpstorm,but I think it maybe the same as AS.

    1.You should reinstall the svn. And choose option modify.

    And next step,you can see the command line client tools.

    Let's choose first one: Will be installed on local hard drive.

    2.Now restart you computer.

    Go to the svn location,all the time it will be C:\Program Files\TortoiseSVN\bin.

    If you see the svn.exe in C:\Program Files\TortoiseSVN\bin,it proved that we reinstall command line client successfully. Copy C:\Program Files\TortoiseSVN\bin\svn.exe into the IDE.

    3.Restart you IDE.It is ok!

    0 讨论(0)
  • 2020-12-02 07:48

    Android Studio cannot find the svn command because it's not on PATH, and it doesn't know where svn is installed.

    One way to fix is to edit the PATH environment variable: add the directory that contains svn.exe. You will need to restart Android Studio to make it re-read the PATH variable.

    Another way is to set the absolute path of svn.exe in the Use command client box in the settings screen that you included in your post.

    UPDATE

    According to this other post, TortoiseSVN doesn't include the command line tools by default. But you can re-run the installer and enable it. That will add svn.exe to PATH, and Android Studio will correctly pick it up.

    0 讨论(0)
  • 2020-12-02 07:48

    i was also getting the same Error, if you are using TortoiseSVN-1.9.5 just do two step Process 1:Click on TSVN.exe tool and 2:Select there on Second Window the Command line for Save on Local Drive with giving the path 3:Click ok Now Restart You Android Studio/IntelliJ

    0 讨论(0)
  • 2020-12-02 07:49

    I have fixed the issue after upgrading existing svn client on mac OS X with following link:(1.7.x to 1.9.x)

    https://ahmadawais.com/installing-svn-subversion-on-yosemite-after-removing-the-old-version/

    1. Open Android Studio
    2. Go to Settings -> Version Control -> Subversion -> General -> User command line client ( Marked checkbox)

    replace ‘svn’ with your svn installed path like ‘/usr/local/bin/svn’

    0 讨论(0)
  • 2020-12-02 07:52

    If you are using ubuntu, check weather subversion is installed or not.

    If not then install through command line as

    sudo apt-get install subversion
    

    and check following configurations are selected

    0 讨论(0)
  • 2020-12-02 07:52

    On Ubuntu 20.04:

    sudo apt install subversion
    
    0 讨论(0)
提交回复
热议问题