2014-10-29 151 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包被指向正確的位置。