Please!..When i try ionic cordova build android..not works


#1

it gives me this :

(node:6376) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually. Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.


#2

Did you do what it says in the error message?
Is ionic cordova requirements happy?
What is your ionic info output?


#3

(node:6376) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually. Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.


#4

Yes, that is the error message.
Did you do what it tells you to do?


#5

Do you have android studio installed in your machine if try reinstalling android studio and make sure that your environment variables are set. and then try again.