错误“无法使用 subversion 命令行客户端:svn"当打开从 svn 检出的 android 项目时 [英] Error "can't use subversion command line client : svn" when opening android project checked out from svn

查看:249
本文介绍了错误“无法使用 subversion 命令行客户端:svn"当打开从 svn 检出的 android 项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不熟悉 Android 开发及其周围的开发工具.我已经使用 TortoiseSVN 客户端从 svn 签出一个项目(无法在 Android Studio 中执行此操作),然后在将项目导入 Android Studio 后收到此错误消息:

<块引用>

不能使用 subversion 命令行客户端:svn

可能是 Subversion 可执行文件的路径错误.

但是我仍然不知道我应该怎么做才能解决这个问题?欢迎任何形式的帮助/建议/方向来解决问题.

解决方案

Android Studio 找不到 svn 命令,因为它不在 PATH 上,并且它不知道svn 的安装位置.

一种修复方法是编辑PATH 环境变量:添加包含svn.exe 的目录.您需要重新启动 Android Studio 以使其重新读取 PATH 变量.

另一种方法是在帖子中包含的设置屏幕的使用命令客户端框中设置svn.exe的绝对路径.

更新

根据另一篇文章,TortoiseSVN 不包含该命令线工具默认.但是您可以重新运行安装程序并启用它.这会将 svn.exe 添加到 PATH,Android Studio 会正确地选择它.

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:

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.

解决方案

Android Studio cannot find the svn command because it's not on PATH, and it doesn't know where svn is installed.

One way to fix is to edit the PATH environment variable: add the directory that contains svn.exe. You will need to restart Android Studio to make it re-read the PATH variable.

Another way is to set the absolute path of svn.exe in the Use command client box in the settings screen that you included in your post.

UPDATE

According to this other post, TortoiseSVN doesn't include the command line tools by default. But you can re-run the installer and enable it. That will add svn.exe to PATH, and Android Studio will correctly pick it up.

这篇关于错误“无法使用 subversion 命令行客户端:svn"当打开从 svn 检出的 android 项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆