Error: SDK Validation
ANDROID_SDK_HOME is set to the root of your SDK: C:\Users\Ali Asadullah\AppData\Local\Android\sdk
This is the path of the preference folder expected by the Android tools.It should NOT be set to the same as the root of your SDK. Please set it to a different folder or do not set it at all.If this is not set we default to: C:\Users\
I have updated to all the new updates. But still the issue is there.
Android Studio 3.1.4 : ANDROID_SDK_HOME is set to the root of your SDK
13.5k views Asked by Ali Asadullah Shah AtThere are 3 answers
On
In my scenario, it is caused by the mysterious environment variable, aka ANDROID_SDK_HOME.
As Android Studio told us, we should not set it. It's deprecated. I know, but what's interesting is I didn't set it at all! It cannot be found here
Windows envrionment variable settings
However, when you run
echo %ANDROID_SDK_HOME%
in cmd(not support in PowerShell), it appears and it is pointed to the root of my SDK!!! It is in Reg table, probably.
So as the simplest solution, you can add a ANDROID_SDK_HOME variable to override it.
Set ANDROID_SDK_HOME in environment variable settings
echo %ANDROID_SDK_HOME% again to check the overriding.
On
FOR PEOPLE GETTING ERRORS AFTER ARCTIC FOX UPDATE ON MAC: For me the error was corrected by editing my bash_profile. (Please remember to do a backup before you start editing this as it can lead to some headaches.)
This was set in the profile ANDROID_SDK_HOME=/Users/$USER/Library/Android/sdk
Delete this line - close and restart Android Studio and you no longer have a wrong folder reference.
In android studio the
ANDROID_SDK_HOMEenvironment variable is deprecated,just delete it.please open "project structure" (press ctrl+shift+alt+s in windows) and set as below fig shown: