# Error on ionic build android

**URL:** <https://forum.ionicframework.com/t/error-on-ionic-build-android/22238>\
**Category:** ionic-v1\
**Created:** [May 3, 2015, 8:43am UTC](https://forum.ionicframework.com/t/error-on-ionic-build-android/22238 "2015-05-03T08:43:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitish1](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@Nitish1](https://forum.ionicframework.com/u/Nitish1)\
**Post date:** [May 3, 2015, 8:43am UTC](https://forum.ionicframework.com/t/error-on-ionic-build-android/22238/1 "2015-05-03T08:43:59Z")

</div>

root@suparna-Inspiron-3542:/home/suparna/EXE# ionic build android  
running cordova build android  
Running command: /home/suparna/EXE/hooks/after\_prepare/010\_add\_platform\_class.js /home/suparna/EXE  
Running command: /home/suparna/EXE/platforms/android/cordova/build  
ANDROID\_HOME=/home/suparna/Documents/android-sdk-linux/  
JAVA\_HOME=/opt/devl/jdk1.8.0\_31/  
Running: /home/suparna/EXE/platforms/android/gradlew cdvBuildDebug -b /home/suparna/EXE/platforms/android/build.gradle -Dorg.gradle.daemon=true

events.js:72  
throw er; // Unhandled ‘error’ event  
^  
Error: spawn EACCES  
at errnoException (child\_process.js:1011:11)  
at Process.ChildProcess.\_handle.onexit (child\_process.js:802:34)  
ERROR building one of the platforms: Error: /home/suparna/EXE/platforms/android/cordova/build: Command failed with exit code 8  
You may not have the required environment or OS to build this project  
Error: /home/suparna/EXE/platforms/android/cordova/build: Command failed with exit code 8  
at ChildProcess.whenDone (/usr/lib/node\_modules/cordova/node\_modules/cordova-lib/src/cordova/superspawn.js:131:23)  
at ChildProcess.emit (events.js:98:17)  
at maybeClose (child\_process.js:766:16)  
at Process.ChildProcess.\_handle.onexit (child\_process.js:833:5)

if i run ionic run android then emulator is working but app doesn’t exist in emulator and console shows this error

events.js:72  
throw er; // Unhandled ‘error’ event  
^  
Error: spawn EACCES  
at errnoException (child\_process.js:1011:11)  
at Process.ChildProcess.\_handle.onexit (child\_process.js:802:34)  
ERROR running one or more of the platforms: Error: /home/suparna/EXE/platforms/android/cordova/run: Command failed with exit code 8  
You may not have the required environment or OS to run this project
