Ionic build Android can't build


#1

Am using ionic CLI verion 1.2.13

When I build for android platform, I get this error

C:\Base\MobileDevApps\classboard>ionic build android
Running command: “C:\Program Files (x86)\nodejs\node.exe” C:\Base\MobileDevApps\classboard\hooks\after_prepare\010_add_platform_class.js C:\Base\MobileDevApps\class
board
add to body class: platform-android
Running command: C:\Base\MobileDevApps\classboard\platforms\android\cordova\build.bat

C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error: ENOENT, no such file or directory 'C:\Android\adt-bundle-windows-x86_64-20140321\sdk\tools\tools\lib\build.template’
at Object.fs.openSync (fs.js:427:18)
at Object.fs.readFileSync (fs.js:284:15)
at C:\Base\MobileDevApps\classboard\platforms\android\cordova\lib\build.js:120:40
at _fulfilled (C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:798:54)
at self.promiseDispatch.done (C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:827:30)
at Promise.promise.promiseDispatch (C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:760:13)
at C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:574:44
at flush (C:\Base\MobileDevApps\classboard\platforms\android\cordova\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:419:13)
Error: C:\Base\MobileDevApps\classboard\platforms\android\cordova\build.bat: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\PROLIFIK\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)


#2

hi ,
you need to check if you put correctly the sdk tools inside your system path.


#3

Yes thanks you were right I missed the path under Android_Home environment.