我有一个可运行的android项目,其www由我的朋友提供。 我创建了cordova项目并为其添加了android平台。然后用项目www替换www文件夹。 当我建立cordova项目时,它显示这个错误。构建科尔多瓦项目时出错
BUILD FAILED
C:\Android\adt-bundle\sdk\tools\ant\build.xml:932: The following error occurred
while executing this line:
C:\Android\adt-bundle\sdk\tools\ant\build.xml:950: null returned: -1073741819
Total time: 11 seconds
C:\Android\fresh\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:\Android\fresh\pla
tforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: C:\Android\fresh\platforms\android\cordova\build.bat: Command failed with
exit code 8
at ChildProcess.whenDone (C:\Users\riyas\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
你能确认你的android-sdk是C:\ Android \ adt-bundle \ sdk \? – 2014-11-02 12:02:23
是的。 android sdk文件夹位于此位置 – 2014-11-02 13:51:35