I tried adding Android as a platform using the command $ ionic platform add Android , when I tried emulation it shows me this error , how to deal with this ? as I am using mac for the first time I have no clue how to deal with it in mac OS .
ERROR: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Error: /Users/ansingh/myApp/platforms/android/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/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:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)