i have this error when i run the command
ionic cordova build since i want to get the apk of my ionic application.
it gives me this output:
C:\Users\User\Desktop\ionic 2\44\scanbot-sdk-example-ionic2-master (2)\scanbot-sdk-example-ionic2-master>ionic cordova build ? What platform would you like to build: ios, android: android Running app-scripts build: --iscordovaserve --externalIpRequired --nobrowser [23:38:06] build dev started ... [23:38:06] clean started ... [23:38:06] clean finished in less than 1 ms [23:38:06] copy started ... [23:38:06] transpile started ... [23:38:10] transpile finished in 4.43 s [23:38:10] preprocess started ... [23:38:10] preprocess finished in 16 ms [23:38:10] webpack started ... [23:38:11] copy finished in 4.70 s [23:38:20] webpack finished in 9.54 s [23:38:20] sass started ... [23:38:21] sass finished in 1.05 s [23:38:21] postprocess started ... [23:38:21] postprocess finished in less than 1 ms [23:38:21] lint started ... [23:38:21] build dev finished in 15.28 s > cordova build android \ Running command [23:38:39] lint finished in 18.39 s ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova build android (exit code 1): Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
What is the error all about and how can i solve it.