Setting up the Environment Variables on Windows 7 and higher
Using Ionic and Cordova to build an Android app might require a modification to the PATH environment on Windows. This can be done with the following steps:
Right-click on My Computer and then click on Properties.
Click on Advanced System Settings in the column to the left.
In the resulting dialog box, select Environment Variables.
Select the PATH variable and click on Edit.
Append the following to the PATH based on where you installed the SDK: