2014-10-29 153 views
0

我已经提供了环境变量中的所有路径变量。但我仍然得到 这个错误。我的adt套件放置在'D'驱动器中。它被称为'E'驱动器。Cordova构建失败

BUILD FAILED 
D:\WorkSpace\Insightix\platforms\android\build.xml:90: Cannot find E:\adt-bundle 
-windows-x86_64-20140321\sdk\tools\ant\build.xml imported from D:\WorkSpace\Insi 
ghtix\platforms\android\build.xml`enter code here` 

Total time: 0 seconds 
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\WorkSpace\Insight 
ix\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen 
Error: D:\WorkSpace\Insightix\platforms\android\cordova\build.bat: Command faile 
d with exit code 2 
    at ChildProcess.whenDone (C:\Users\go253199\AppData\Roaming\npm\node_modules 
\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:enter code here135: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) 

回答

0

根据您的生成配置,Android SDK中是在 'E:\ ADT-束 -Windows-x86_64-20140321 \ SDK' 目录。但是你把adt捆绑在'D'驱动器中。

编辑'D:\ WorkSpace \ Insightix \ platforms \ android'目录中的'local.properties'文件&确保adt包被指向正确的位置。