com.android.prefs.AndroidLocation$AndroidLocationException: Unable to get the Android SDK home directory. Make sure the environment variable ANDROID_SDK_HOME is set up.

Hot problem!
This exception has a lot of traffic. You can help 15 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by The Thom
, 1 year ago
Unable to get the Android SDK home directory. Make sure the environment variable ANDROID_SDK_HOME is set up.
com.android.prefs.AndroidLocation$AndroidLocationException: Unable to get the Android SDK home directory. Make sure the environment variable ANDROID_SDK_HOME is set up.
at com.android.prefs.AndroidLocation.findHomeFolder(AndroidLocation.java:220)
at com.android.prefs.AndroidLocation.getFolder(AndroidLocation.java:141)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.