我在环境变量中提供了所有路径变量。但我还是得到了 这个错误。我的adt包放在'D'驱动器中。它被称为'E'Drive。
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 :(得分:0)
根据您的构建配置,android sdk位于' E:\ adt-bundle中 -Windows-x86_64-20140321 \ SDK'目录。但是你把adt bundle放在' D'驾驶。
编辑' local.properties'文件在' D:\ WorkSpace \ Insightix \ platforms \ android'目录&确保adt包指向正确的位置。