PhoneGap中文网

 找回密码
 立即注册

编译创建Android项目的时候出现如下错误,求解决方案

查看数: 10058 | 评论数: 2 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2015-9-6 15:42

正文摘要:

编译创建Android项目的时候出现如下错误,求解决方案

回复

wulei 发表于 2015-9-7 00:29:46
admin 发表于 2015-9-6 20:54
先运行cordova paltform add  android  或者  phonegap  paltform add  android

D:\android\Projects\hello>cordova -d platform add android
No version supplied. Retrieving version from config.xml...
Adding android project...
Running command: cmd "/s /c "C:\Users\Administrator\.cordova\lib\npm_cache\cordo
va-android\4.1.1\package\bin\create.bat --cli D:\android\Projects\hello\platform
s\android com.zknw.hello HelloWorld""
Command finished with error code ENOENT: cmd /s /c "C:\Users\Administrator\.cord
ova\lib\npm_cache\cordova-android\4.1.1\package\bin\create.bat --cli D:\android\
Projects\hello\platforms\android com.zknw.hello HelloWorld"
Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\Administrator\AppData\Roaming\npm\node_mo
dules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
    at ChildProcess.EventEmitter.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:795:12)
admin 发表于 2015-9-6 20:54:32
先运行cordova paltform add  android  或者  phonegap  paltform add  android
关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2025-1-6 20:44 , Processed in 0.062985 second(s), 35 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表