Android Studio can't authenticate with SVN

旧城冷巷雨未停 提交于 2019-12-09 07:55:29

问题


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.


回答1:


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.




回答2:


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

then,the problem solved!




回答3:


Please have a look on issue reported in Intellij Idea with some workarounds in reply if it helps you

http://youtrack.jetbrains.com/issue/IDEA-26844 (Srinivas Reply)

and

http://youtrack.jetbrains.com/issue/IDEA-81294 (Irina Chernushina (JetBrains))

you need to set your configuration info in SVN tunnel config file(~/.subversion/config) kssh = /your/path/to/ssh

in tunnel section.example mine looks like : kssh = /usr/bin/ssh

Remember you need to point your IDE to use subversion config file in the subversion options or change it in ~/.subversion_IDEA/config file




回答4:


Maybe an other solution : in my case, the SVN SSL certificate is a self-signed, so AndroidStudio won't make checkout until the certificate is accepted. It seems that AndroidStudio doesn't ask what the user want to do.

The solution was to make a checkout with tortoiseSVN (do it with svn command line otherwise) in a temporary folder. Tortoise asked you for accepting the certificate : choose 'Permanently accept'. After that, AndroidStudio checked out successfully my files.

Please note that AndroidStudio might be configured to use the system svn environment (File > Settings > Version Control > Subversion).

Hope it will help.



来源:https://stackoverflow.com/questions/21323421/android-studio-cant-authenticate-with-svn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!