Function android_build::android_sdk
source ยท pub fn android_sdk() -> Option<PathBuf>
Expand description
Returns the path to the Android SDK directory.
The path is determined by an ordered set of attempts:
- The
ANDROID_HOME
environment variable, if it is set and if the directory exists. - The
ANDROID_SDK_HOME
environment variable, if it is set and if the directory exists. - The default installation location for the Android SDK, if it exists.
- On Windows, this is
%LOCALAPPDATA%\Android\Sdk
. - On macOS, this is
~/Library/Android/sdk
. - On Linux, this is
~/Android/Sdk
.
- On Windows, this is