Android Studio will not open a project checked out with svn
Can't use Subversion command line client: svnShort answer
Android Studio does not bundle Subversion. It runs the svn program you name in Settings > Version Control > Subversion > Path to Subversion executable. The error means that field points at nothing usable, or svn is not installed. Install the command line client, confirm svn --version works in a terminal, then paste the real path into that field.
Fix it fast
1Find out which cause you have
Ask the shell which svn it finds. If this prints nothing, Subversion is not installed, or it is not on the PATH that Android Studio sees. Use the printed path in the field described below.
which svn svn --version --quiet2Match what you see, then jump to its fix
What does the error look like?
Can't use Subversion command line client: svnCan't use Subversion command line client
Cause 1 of 2
The svn client is not installed
1Check
A plain Android Studio install has no Subversion in it. On Windows, TortoiseSVN installs the command line tools only if you tick that option in its installer.
svn --version --quiet2Fix
Install the command line client. On macOS use Homebrew. On Debian and Ubuntu the package is called subversion. On Windows, re-run the TortoiseSVN installer and add the command line client tools, or use another client from the Subversion packages list.
# macOS
brew install subversion
# Ubuntu / Debian
sudo apt-get install subversion3Verify
Open a new terminal and run the version command. It prints a version number.
svn --version --quietConfirmed by subversion.apache.org
Cause 2 of 2
The Path to Subversion executable field is empty or points at the wrong file
1Check
Open Settings (Android Studio > Settings on macOS), then Version Control > Subversion. The Path to Subversion executable field holds the location the IDE runs. A path to a folder, to an old install, or to a TortoiseSVN GUI file will fail.
# macOS / Linux: the full path to paste into the field
which svn
# Windows (cmd)
where svn2Fix
Click Browse next to the field and pick the svn executable itself (svn on macOS and Linux, svn.exe on Windows), then click Apply and reopen the project.
# typical values to paste
/opt/homebrew/bin/svn
/usr/bin/svn
C:\Program Files\TortoiseSVN\bin\svn.exe3Verify
The balloon no longer appears when the project opens, and VCS > Update Project works.
svn info .Confirmed by jetbrains.com
How do I stop it coming back?
- Install the Subversion command line client before you check out a project in the IDE.
- After upgrading the IDE or the OS, open the Subversion settings page once and confirm the executable path still exists.
- On Windows, choose the command line tools option when you install or update TortoiseSVN.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine built on the same technologies:
Related fixes
Mobile apps
adb cannot start because something already holds its port
adb start-server failed
The adb server must bind local TCP port 5037, and every adb client talks to it there.
2 causes, each with a fixMobile apps
adb cannot connect to its daemon or start the server
* daemon started successfully *
The adb server is a background process on your computer that listens on TCP port 5037.
2 causes, each with a fixMobile apps
adb prints 'server version doesn't match this client; killing...'
adb server version doesn't match this client; killing...
adb runs a background server, and every adb command is a client.
3 causes, each with a fixMobile apps
adb tcpip 5555 fails because no device is found
adb: more than one device/emulator
adb tcpip only works while the device is attached and listed by adb, because it tells the phone to start listening on port 5555.
4 causes, each with a fixMobile apps
The Android Emulator says /dev/kvm is not found
KVM acceleration can NOT be used
The emulator wants a hypervisor and cannot find one.
4 causes, each with a fixMobile apps
The emulator says the GPU driver is unsupported and falls back to software
vulkan-1.dll cannot be found
The emulator picks a graphics mode when it starts.
4 causes, each with a fix