How to Add Environment Variable on Windows - hyvanmielenpelit/GnollHack GitHub Wiki
- Right-click the Windows Start button and select System.
- Click Advanced system settings.
- Click Environment Variables....
- Click New... for user variables or system variables (it does not usually matter).
- Set the variable name and the variable value.
- Restart Visual Studio and all command/PowerShell prompts.
- Open PowerShell.
- Write
echo $Env:Environment_Variable_Name
to check that it is set. For example, echo $Env:ANDROID_NDK_HOME
.