Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio can't authenticate with SVN

I'm new in Android Studio. I'm trying to import my project and work with the built-in svn of android studio.

When I import the project to android studio, it works fine but the svn of android studio can't authenticate when I update, commit...

The authentication dialog re-appears repeatedly.

What I did:

  1. Import project folder from svn server using TortoiseSVN

  2. Import project to eclipse and export it as Gradle (Because project on SVN is eclipse project)

  3. Import that gradle project into Android Studio

My SVN server is 'svn+ssh' connect. When I'm trying to update or commit, Android studio can't authenticate.

Error:

svn: E204899: E170012: When using svn+ssh:// URLs, keep in mind that the --username and --password options are ignored because authentication is performed by SSH, not Subversion
svn: E170012: Unable to connect to a repository at URL 'svn+ssh://zuranai.arx-project.com/opt/SVN1.zap_dev/trunk/android'
svn: E170012: Can't create tunnel
svn: E720002: Can't create tunnel: The system cannot find the file specified.

What's wrong with my android studio? Any advice?

Edited:
I can't commit, update but still can revert.

enter image description here

like image 736
Tai Dao Avatar asked Jan 24 '14 02:01

Tai Dao


People also ask

What is SVN authentication?

Windows Authentication is a key feature of VisualSVN Server. This feature is designed for Active Directory domain environments and allows users to access VisualSVN Server with their Windows credentials.


2 Answers

I had same problem, but found a solution.

  1. Go to 'Android Studio > Preferences > Version Control > Subversion'
  2. Uncheck follow two items
    • Use command line client
    • Use system default Subversion configuration directory

It will now work correctly.

like image 190
jhlee.8804 Avatar answered Oct 21 '22 16:10

jhlee.8804


I also have this problem. Here is how i solve it: On the "File" menu,click "Invalidate Cashes/Restart..."

then,the problem solved!

like image 42
tsingroo Avatar answered Oct 21 '22 17:10

tsingroo