I have this problem on ionic 3:
When i run this:
ionic cordova run android --device
i see this:
> cordova run android
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.
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova run android (exit code 1).
I do not know what the solution is. I would like to know the link to download sdk for android and the way I have to set the path variable, I tried but I can not