[android] Error "can't use subversion command line client : svn" when opening android project checked out from svn

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 Android Studio), then get this error message after importing the project to Android Studio:

can't use subversion command line client : svn

Probably the path to Subversion executable is wrong. Fix it..

When I click "Fix it" link, this dialog pops up:

enter image description here

But I still have no idea what I am supposed to do to fix this? Any kind of help/suggestion/direction to fix the problem are welcome.

This question is related to android svn tortoisesvn android-studio

The answer is


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!


If you using windows, you can fix it via install SVN Tool. If you using Linux/MacOS, you can fix it via install subversion. After that, just select using svn command. Your problems is resolve.


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.

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

1.You should reinstall the svn. And choose option modify. enter image description here

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

Let's choose first one: Will be installed on local hard drive. enter image description here

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.

enter image description here

3.Restart you IDE.It is ok!


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’


On Ubuntu 20.04:

sudo apt install subversion

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.


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


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". enter image description here

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

enter image description here enter image description here


While installation of Tortoise SVN.

Just change the command line svn tool setting.

Step 1: Click on command line client tools

enter image description here

Step 2: Select first option (Will be installed on local hard drive)

enter image description here

Thats it. Happy Journey.

[N.B: Images are copied from others solution]


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


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

enter image description here


i have fixed the issue by just downloading the android command line tool from https://www.visualsvn.com/downloads/ download apache comand line tool unzip it on drive go to your android settings/version control/subversion and make sure only command line option is enable set the path of svn.exe as shown below C:\Users\viratsinh.parmar\Apace SVN client\Apache-Subversion-1.8.13\bin\svn.exe

now in your android studio update the project , you will be able to commit now. you can contact me on [email protected]


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.


Examples related to android

Under what circumstances can I call findViewById with an Options Menu / Action Bar item? How to implement a simple scenario the OO way My eclipse won't open, i download the bundle pack it keeps saying error log getting " (1) no such column: _id10 " error java doesn't run if structure inside of onclick listener Cannot retrieve string(s) from preferences (settings) strange error in my Animation Drawable how to put image in a bundle and pass it to another activity FragmentActivity to Fragment A failure occurred while executing com.android.build.gradle.internal.tasks

Examples related to svn

Error "can't use subversion command line client : svn" when opening android project checked out from svn How to view changes made to files on a certain revision in Subversion Intellij idea subversion checkout error: `Cannot run program "svn"` How change default SVN username and password to commit changes? How to rename a file using svn? Connect Android Studio with SVN svn: E155004: ..(path of resource).. is already locked SVN Commit failed, access forbidden How to add an existing folder with files to SVN? Update OpenSSL on OS X with Homebrew

Examples related to tortoisesvn

TortoiseSVN icons overlay not showing after updating to Windows 10 Error "can't use subversion command line client : svn" when opening android project checked out from svn SVN Commit failed, access forbidden SVN commit command svn cleanup: sqlite: database disk image is malformed SVN Repository on Google Drive or DropBox Resolving tree conflict SVN icon overlays not showing properly Working copy locked error in tortoise svn while committing Subversion stuck due to "previous operation has not finished"?

Examples related to android-studio

A failure occurred while executing com.android.build.gradle.internal.tasks "Failed to install the following Android SDK packages as some licences have not been accepted" error Android Gradle 5.0 Update:Cause: org.jetbrains.plugins.gradle.tooling.util This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' Flutter plugin not installed error;. When running flutter doctor ADB.exe is obsolete and has serious performance problems Android design support library for API 28 (P) not working Flutter command not found How to find the path of Flutter SDK