Hi , thanks for the feedback
I had issues with my permissions, hence why i was using sudo, however the ionic app seems to be building fine as per the output below from the second command.
I have run the 2 commands as advised following commands:
1: $ cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed Google Inc.:Google APIs:23,Google Inc.:Google APIs:22,Google Inc.:Google APIs:21,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:19,Google Inc.:Glass Development Kit Preview:19,Google Inc.:Google APIs:18,Google Inc.:Google APIs:17,Google Inc.:Google APIs:16,Google Inc.:Google APIs:15,Google Inc.:Google APIs:10,Google Inc.:Google APIs:8,android-25,android-24,android-23,android-22,android-21,android-20,android-19,android-18,android-17,android-16,android-15,android-10,android-8
Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-2.4/bin/gradle
Requirements check results for ios:
Apple OS X: installed darwin
Xcode: installed 8.3.3
ios-deploy: installed 1.9.1
CocoaPods: installed
2: $ ionic cordova run android -verbose
[INFO] --consolelogs or --serverlogs detected, using --livereload
[INFO] Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --serverlogs --nobrowser
--iscordovaserve - Ctrl+C to cancel
[00:59:51] watch started ...
[00:59:51] build dev started ...
[00:59:51] clean started ...
[00:59:51] clean finished in 2 ms
[00:59:51] copy started ...
[00:59:51] transpile started ...
[00:59:53] transpile finished in 2.33 s
[00:59:53] preprocess started ...
[00:59:53] deeplinks started ...
[00:59:53] deeplinks finished in 59 ms
[00:59:53] preprocess finished in 61 ms
[00:59:53] webpack started ...
[00:59:53] copy finished in 2.55 s
[01:00:01] webpack finished in 7.66 s
[01:00:01] sass started ...
[01:00:02] sass finished in 1.05 s
[01:00:02] postprocess started ...
[01:00:02] postprocess finished in 4 ms
[01:00:02] lint started ...
[01:00:02] build dev finished in 11.14 s
[01:00:02] watch ready in 11.20 s
[01:00:02] dev server running: http://localhost:8100/
[INFO] Development server running
Local: http://localhost:8100
External: http://10.0.0.8:8100
> cordova run android
ANDROID_HOME=/Users/codehacker/documents/sdk/android
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Error: spawn EACCES
[ERROR] An error occurred while running cordova run android (exit code 1).
Munyaradzis-MBP:newsApp codehacker$ (node:734) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed