I am trying to create an Android project with Cordova, however i am getting an ENOENT error although i followed the tutorial step by step very carefully, this is getting me angry.
First this is the screenshot of the error:
Here are information about my software and hardware/os:
硬件和操作系统:
- 英特尔(R) 酷睿(TM) i5-3230M CPU @ 2.60 GHz 2.60GHz
- 4 GB RAM
- 64 位操作系统,基于 x64 的处理器
- 视窗8
软件:以下是我的相关软件命令行的一些输出。
- $ npm -版本
- 输出:1.4.8
- $ 科尔多瓦版本
- 输出:3.4.1-0.1.0
- $ ant -版本
- 输出:Apache Ant(TM) 版本 1.9.3 于 2013 年 12 月 23 日编译
- $ java -版本
- $ adb 版本
- 输出:Android 调试桥版本 1.0.31
这是我的一些系统变量:
- ANDROID_HOME: C:\adt-bundle-windows-x86_64-20140321\sdk
- ANT_HOME: C:\apache-ant-1.9.3
- JAVA_HOME:C:\ Program Files \ Java \ jdk1.8.0_05
- 类路径:%JAVA_HOME%\jre\lib
小路:
%JAVA_HOME%\bin;C:\app\barisa\product\11.2.0\dbhome_1\bin;C:\Program
文件 (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
客户端\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
文件\英特尔\英特尔(R) 管理引擎组件\DAL;C:\Program
文件\英特尔\英特尔(R) 管理引擎组件\IPT;C:\Program
文件 (x86)\Intel\Intel(R) 管理引擎
组件\DAL;C:\Program Files (x86)\Intel\Intel(R) Management
引擎组件\IPT;C:\Program Files\Microsoft\Web Platform
安装程序\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web
Pages\v1.0\;c:\Program Files (x86)\Microsoft SQL
Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
服务器\100\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.0\Windows
性能工具包\;C:\Program Files (x86)\Microsoft SQL
Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL
服务器\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
服务器\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files
(x86)\微软 Visual Studio
8\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL
服务器\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files
(x86)\微软 Visual Studio
9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL
服务器\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
服务器\110\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\微软 Visual Studio
10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL
服务器\110\DTS\Binn\;%ANT_HOME%\bin;C:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools;C:\adt-bundle-windows-x86_64-20140321\sdk\tools ;C:\程序
文件\nodejs\
注意:经过一些操作后,我将tools.jar从jdk/lib复制到jre/lib
在互联网上进行研究。不工作。
注2:我给出命令“cd
C:\Users\barisa.cordova\lib\android\cordova\3.4.0\bin" 有一个
该文件夹中的 check_reqs 文件。但是,如果我在中输入 $ chek_reqs
命令行显示“check_reqs 未被识别为内部或
外部命令……”
注3:我通过右键单击->运行为打开命令提示符(cmd)
管理员我该怎么办?
带 -d 标志的额外信息:
Update
I cleaned .cordova and reinstalled it and now, i am getting this error:
我的变量的定义如上所述。
如果您确定自己的路径,请尝试在 cmd 中输入 android,如果它显示:“xcopy”未被识别。
然后添加到你的路径:
%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
在某些情况下,不要忘记重新启动电脑。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)