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

标签 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

最佳答案

我遇到了同样的问题。一时兴起,直接把<\windows\system32>文件夹下的xcopy.exe复制过来,粘贴到android.bat所在的<\adt-bundle-windows-x86-20131030\sdk\tools>文件夹中,然后重新运行 android.bat 文件。瞧,它奏效了!

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

  • 柯特 B.

关于Android SDK 管理器显示更新项目时无法识别 xcopy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17511756/

相关文章:

android - 我们的 Android 应用程序的 key 存储已损坏,因此无法将更新发布到现有应用程序。解决方法是什么?

android - Android 何时支持 OpenGL ES 3.1?

Powershell相当于复制Xcopy仅更新目标中存在的文件

visual-studio - 如何使用 xcopy 仅复制较新的文件?

windows - 为什么在管理员模式下运行时不能使用批处理 XCOPY?

xcopy - 如何从列表中删除文件?

batch-file - 从多个目录复制具有特定扩展名的文件

java - 桌面纵向设置?

c# - 将字符串数组传递给 C# Web 服务 (Android Ksoap2)

Android 加速度计最大值