pub fn android_jar(platform_string: Option<&str>) -> Option<PathBuf>Expand description
Returns the path to the android.jar file for the given API level.
The path is determined by an ordered set of attempts:
- The
ANDROID_JARenvironment variable, if it is set and points to a file that exists. - The argument
platform_stringis used if it isSome, to find the subdirectory for the specific platform version under the Android SDKplatformsdirectory, in which theandroid.jarfile should exist. - The value of the following environment variables are used to calculate the platform string:
ANDROID_PLATFORM,ANDROID_API_LEVELorANDROID_SDK_VERSIONANDROID_SDK_EXTENSION(optional)
- The highest Android platform version found in the SDK
platformsdirectory is used if the platform version is not set by environment variables.