set JAVA_HOME as C: \ Program Files \ Java \ jdk1.8.0_172
do not use a semicolon ";" with the above JAVA_HOME value
To verify that it is installed correctly, go to check the command line for C: .......> sdkmanager --list
A complete list appears that allows you to successfully save it.
otherwise it will show an error that the JAVA_HOME path is not set correctly.
source share