问题描述
我是新来的周围android开发和开发工具。我已签出项目从SVN使用TortoiseSVN客户端(不能管理从Android的Studio中做到这一点),然后得到这个错误信息导入项目到Android工作室后:
I'm new to android development and development tools around it. I have checked out 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 :
不能使用Subversion命令行客户端: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 am I supposed to do to fix this? Any kind of help/suggestion/direction to fix the problem are welcome.
推荐答案
Android的工作室找不到 SVN
命令,因为它不是 PATH
,它不知道在哪里 SVN
安装。
Android Studio cannot find the svn
command because it's not on PATH
, and it doesn't know where svn
is installed.
要解决的一个方法是编辑 PATH
环境变量:添加包含 svn.exe
的目录。您将需要重新启动机器人工作室,使其重读 PATH
变量。
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.
另一种方法是设置 svn.exe
在使用命令客户端在设置框中的绝对路径屏幕,你包括你的帖子。
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.
更新
根据这另一个帖子,TortoiseSVN的不包括命令行工具在默认情况下。但是你可以重新运行安装程序并启用它。这将增加 svn.exe
到 PATH
,和Android Studio将正确地把它捡起来。
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"当打开Android项目从SVN签出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!