每当我尝试使用:android update project --path
更新我的项目时,它都会显示以下错误。我的android sdk路径是:S:Androidappadt-bundle-windows-x86-20130514sdk
我有我的java环境变量:java_HOME:
%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;C:Program Files (x86)Javajdk1.7.0_21bin
命令提示符错误:
F:tess-two-mastertess-two> S:Androidappadt-bundle-windows-x86-20130514sdktoolsandroid update project -p F:tess-two-mastertess-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-mastertess-two.proguard-project.txt
我遇到了同样的问题。一时兴起,我刚从<\windows\system32>文件夹并将其粘贴到<\android.bat所在的adt-bundle-windows-x86-20131030\sdk\tools>文件夹,然后重新运行android.bat文件。瞧,它奏效了!
这不是一个优雅的解决方案,但像我这样的新手在必要时会选择暴力;-)
- Kirt B
为%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;
DIR提供完整路径,而不是%%%路径