Android SDK manager shows xcopy is not recognized while updating project

僤鯓⒐⒋嵵緔 提交于 2019-12-08 07:52:31

问题


Whenever i try to update my project using : android update project --path , it shows the following error given below. my android sdk path is : S:\Androidapp\adt-bundle-windows-x86-20130514\sdk

i have my java environment variable: JAVA_HOME :

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

ERROR at command prompt:

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

回答1:


Give full path to the %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; DIR, Instead of the %%% Path




回答2:


I ran into the same problem. On a whim, I just copied xcopy.exe from the <\windows\system32> folder and pasted it into the <\adt-bundle-windows-x86-20131030\sdk\tools> folder where android.bat resides, then re-ran the android.bat file. Lo and behold it worked!

It's not an elegant solution, but novices like me settle for brute force when necessary ;-)

  • Kirt B.


来源:https://stackoverflow.com/questions/17511756/android-sdk-manager-shows-xcopy-is-not-recognized-while-updating-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!