我一直在node.js中构建我的phonegap应用程序没有任何问题。突然,当我现在尝试构建时,它显示出一些错误,并且没有创建apk。
这是错误:
C:\testapp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "ant debug -f C:\testapp\platform
s\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen"
ERROR building one of the platforms: Error: C:\testapp\platforms\android\cordova
\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: C:\testapp\platforms\android\cordova\build.bat: Command failed with exit
code 1
at ChildProcess.whenDone (C:\Users\Vaishakh\AppData\Roaming\npm\node_modules
\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
我没有调整任何系统设置/属性。我没有更改或卸载任何东西。这突然发生了。我尝试重新启动,但它没有用。