dira
dira

Reputation: 30594

file protocol of SVN with Android Studio

When I expand below URL

file:///D:/dev/admin/subversion/dev707/hello-android

in Android Studio (1.1.0) I get following error

svn: E180001: Unable to open an ra_local session to URL

Though, I can browse the same URL using TortoiseSVN 1.8.11 and Eclipse 4.4.2.

Please explain how to access SVN repo in Android Studio using file protocol.

Upvotes: 0

Views: 581

Answers (2)

bahrep
bahrep

Reputation: 30662

You'd better install Subversion server instead of accessing a repository via file:// access scheme. When accessing a repository via HTTP(S) or svnserve it does not matter what repository format version is.

Moreover, when you access the repository via file://, you access it directly on disk. Therefore there is no authentication and authorization, no hook scripts work, you can't make the repository available for other developers, etc.

Upvotes: 1

dira
dira

Reputation: 30594

The solution is to create backward compatible SVN repo using new Tortoise SVN:-

  1. By default, Tortoise SVN does not install 'svn command line client tools'. Re-install Tortoise SVN with 'commnad line client tools'.

Tortoise Installation

  1. Update Settings --> Version Control --> Subversion --> General as shown below. Also restart Android Studio, so it will pick up new PATH environment variable recently set by Tortoise SVN re-installation.

Android Studio Settings

  1. Create backward compatible SVN repository using below command with Tortoise SVN 1.8.11.

    svnadmin create --compatible-version 1.7 studio

  2. Now, add SVN URL to Android Studio, you will be able to access the SVN content.

Android Studio SVN Repos

Upvotes: 1

Related Questions