wulei 发表于 2015-9-6 15:42:10

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

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

admin 发表于 2015-9-6 20:54:32

先运行cordova paltform addandroid或者phonegappaltform addandroid

wulei 发表于 2015-9-7 00:29:46

admin 发表于 2015-9-6 20:54
先运行cordova paltform addandroid或者phonegappaltform addandroid

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)
页: [1]
查看完整版本: 编译创建Android项目的时候出现如下错误,求解决方案