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_HOMEenvironment variable, if it is set and if the directory exists. - The
ANDROID_SDK_HOMEenvironment 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