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

后端 未结 14 1367
清酒与你
清酒与你 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:32

    Saw your problems.

    Solutions:

    First Download Subversion 1.8.13 ( 1.8 ) client Download link (https://subversion.apache.org/packages.html) at the time of this post the android studio version is less than 1.4 in my case 1.3.2 so you must avoid the issues here subversion command line client version is too old so just download the 1.8 preferably.

    enter image description here

    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 picture:

    enter image description here

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

    Apply -> Ok

    Restart your android studio now.

    Happy Coding!

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

    There are better answers here, but how I fix this may be relevant for someone:

    After checking out the project from SVN, instead of choosing the 1.7 version, I chose Subversion 1.6 and it worked.

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

    This is annoying, I wish IntelliJ would handle this better than a startup nag..

    If you are using TortoiseSVN 1.8+ on Windows, do this:

    1. Run the the TortoiseSVN Installer. (It may still be in your Downloads folder)
    2. Select the option to Modify.
    3. Install Command line client tools on to the local harddrive.
    4. Add C:\Program Files\TortoiseSVN\bin to your Path environment variable.
    5. Restart IntelliJ.
    0 讨论(0)
  • 2020-12-02 07:36

    Installing Subversion for Windows should solve the issue. Please see my answer here - https://stackoverflow.com/a/31627732/3433133

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

    Under Linux, got same problem after Android Studio update (and several months without using it...).

    I solved it by running the following command in a console:

    mv .subversion/ .subversion.bak
    

    I prefer that command to rm -R .subversion since it left me a rollback option.

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

    First install TortoiseSVN. During installation follow this steps

    1.Run the the TortoiseSVN Installer.

    2.If you have already installed svn, "Select the option to Modify".

    3.select the check box "Install Command line client tools on to the local harddrive".

    4.Add C:\Program Files\TortoiseSVN\bin to your Path environment variable or press CTRL+ALT+S in android studio. Then go to "Version Control"-> Subversion -> General -> Check the Checkbox "use commmand line client" and set the path to C:\Program Files\TortoiseSVN\bin\svn.exe

    5.Restart IntelliJ.

    In Android studio1.5 version when you try to add the file in your project,
    android studio will ask for a pop like "schedule for Addition"
    to subversion?. select the check box (Remember, don't ask again) and click "yes". 
    After this whatever the file you add or remove to your project it will automatically
    synced to your svn repository. suppose if you didn't get that dialog, but you want to
    add the newly added .png or xml file to svn means you can manually select those files 
    which you have added (the newly added file will be in red color) right click 
    on that file -> subversion -> Add to VCS or simply select the file and use (CTRL+ALT+A).
    

    In the image green color(logo_actionbar) represents to file was already added to svn, red represents yet to add in svn. cool..!

    If you want to change the "Schedule for Addition" setting means, Go to Settings -> Version Control -> Confirmation -> When files are created
    Choose Show options before adding to version control

    0 讨论(0)
提交回复
热议问题