科尔多瓦无法添加Android的失败,退出code ENOENT [英] Cordova cannot add Android failed with exit code ENOENT

查看:120
本文介绍了科尔多瓦无法添加Android的失败,退出code ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个科尔多瓦Android项目,但是我收到一个ENOENT错误,虽然我也跟着一步教程一步非常谨慎,这让我很生气。 首先,这是错误的截图: 以下是有关我的软件和硬件/操作系统信息:

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:

硬件和OS:

  • 在英特尔(R)酷睿(TM)i5-3230M CPU @ 2.60 GHz的2.60GHz
  • 4 GB的RAM
  • 在64位操作系统,X 64架构的处理器
  • 在Windows 8中

软件: 下面是一些对相关软件我的命令行的输出。

Software: Here are some of the outputs of my command line for the related software.

  • $ NPM -version
  • 输出:1.4.8
  • $科尔多瓦-version
  • 输出:3.4.1-0.1.0
  • $蚂蚁-version
  • 输出:Apache Ant的(TM)版本1.9.3编译于二○一三年十二月二十三日
  • 在$ Java的版本

  • $亚行版本
  • 输出:安卓调试桥版本1.0.31

下面是我的一些系统变量:

  • ANDROID_HOME:C:\ ADT-束的Windows x86_64-20140321 \ SDK
  • ANT_HOME:C:\ Apache的ANT-1.9.3
  • JAVA_HOME:C:\ Program Files文件\的Java \ jdk1.8.0_05
  • 在CLASSPATH:%JAVA_HOME%\ JRE \ lib目录
  • 路径: %JAVA_HOME%\ BIN; C:\程序\巴里沙\产品\ 11.2.0 \ dbhome_1 \ BIN; C:\ PROGRAM 文件(x86)\英特尔\ ICLS客户端\; C:\ Program Files文件\英特尔\ ICLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program FILES \英特尔\英特尔(R)管理引擎组件\ DAL; C:\ PROGRAM FILES \英特尔\英特尔(R)管理引擎组件\ IPT; C:\ PROGRAM 文件(x86)\英特尔\英特尔(R)管理引擎 组件\ DAL; C:\ Program Files文件(x86)的\英特尔\英特尔(R)管理 发动机组件\ IPT; C:\ Program Files文件\微软\ Web平台 安装程序\; C:\ Program Files文件(x86)的\微软ASP.NET \ ASP.NET网页 网页\ 1.0 \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 100 \ TOOLS \ BINN \; C:\ Program Files文件\微软SQL 服务器\ 100 \ TOOLS \ BINN \; C:\ Program Files文件\微软SQL 服务器\ 100 \ DTS \ BINN \; C:\ Program Files文件(x86)的\的Windows套件\ 8.0 \ Windows下 性能工具包\; C:\ Program Files文件(x86)的\微软SQL 服务器\ 80 \ TOOLS \ BINN \; C:\ Program Files文件\微软SQL 服务器\ 90 \ TOOLS \ BINN \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 90 \ TOOLS \ BINN \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 90 \ DTS \ BINN \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 90 \ TOOLS \ BINN \ VSShell \ Common7 \ IDE \; C:\ Program Files文件 (x86)的\微软的Visual Studio 8 \ Common7 \ IDE \ PrivateAssemblies \; C:\ Program Files文件(x86)的\微软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文件\微软SQL 服务器\ 110 \ DTS \ BINN \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 110 \ TOOLS \ BINN \; C:\ Program Files文件\微软SQL 服务器\ 110 \ TOOLS \ BINN \; C:\ Program Files文件(x86)的\微软SQL 服务器\ 110 \ TOOLS \ BINN \ ManagementStudio \; C:\ Program Files文件 (x86)的\微软的Visual Studio 10.0 \ Common7 \ IDE \ PrivateAssemblies \; C:\ Program Files文件(x86)的\微软SQL Server\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:\Program 文件\ nodejs \

  • 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
  • CLASSPATH: %JAVA_HOME%\jre\lib
  • PATH: %JAVA_HOME%\bin;C:\app\barisa\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;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 Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;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 Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\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 Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\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:\Program Files\nodejs\

注:我复制从JDK / lib中的tools.jar到JRE / lib目录后,一些 研究在互联网上。没有工作。

Note: I copied the tools.jar from jdk/lib to jre/lib after some research on the internet. Not working.

注2:我给命令CD C:\ Users \用户barisa.cordova \ lib目录\机器人\科尔多瓦\ 3.4.0 \ bin中有一个 check_reqs文件文件夹中。但是,如果我输入$ chek_reqs在 命令行提示check_reqs不被识别为一个内部或 外部命令......

Note 2: I give the command "cd C:\Users\barisa.cordova\lib\android\cordova\3.4.0\bin" There is a check_reqs file in that folder. However if i type $ chek_reqs in the command line it says "check_reqs is not recognized as an internal or external command ...."

注3:我右键点击打开命令propmt(CMD) - >运行作为 管理员我应该怎么办?

Note 3: I opened command propmt (cmd) by right click -> run as administrator What should i do?

额外信息与-d标志:

我打扫.cordova并重新安装了它,现在,我收到此错误:

I cleaned .cordova and reinstalled it and now, i am getting this error:

我的变量被定义如上。

推荐答案

尝试请按照下列步骤操作:

Try to follow these steps:

  1. 运行命令:故宫卸载科尔多瓦-g
  2. 删除文件夹:C:\用户\你的名\ .cordova
  3. 重新安装科尔多瓦:故宫安装-g科尔多瓦
  4. 现在,转到项目文件夹,然后再试一次:科尔多瓦平台添加的android

这篇关于科尔多瓦无法添加Android的失败,退出code ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆