Android SDK管理器显示更新项目时无法识别xcopy

时间:2013-07-07 11:31:53

标签: android xcopy

每当我尝试使用android update project --path更新项目时,都会显示以下错误。 我的android sdk路径是:S:\Androidapp\adt-bundle-windows-x86-20130514\sdk

我有我的java环境变量:JAVA_HOME:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Java\jdk1.7.0_21\bin

命令提示符处的错误:

F:\tess-two-master\tess-two> S:\Androidapp\adt-bundle-windows-x86-20130514\sdk\tools\android update project -p F:\tess-two-master\tess-two.
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Updated local.properties
Updated file F:\tess-two-master\tess-two.\proguard-project.txt

2 个答案:

答案 0 :(得分:4)

我遇到了同样的问题。一时兴起,我只是从< \ windows \ system32>中复制了xcopy.exe。文件夹并将其粘贴到< \ adt-bundle-windows-x86-20131030 \ sdk \ tools> android.bat所在的文件夹,然后重新运行android.bat文件。瞧,看起来有效!

这不是一个优雅的解决方案,但是像我这样的新手在必要时会接受蛮力; - )

  • Kirt B。

答案 1 :(得分:3)

提供%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; DIR的完整路径,而不是%%% Path