android_jar

Function android_jar 

Source
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_JAR environment variable, if it is set and points to a file that exists.
  • The argument platform_string is used if it is Some, to find the subdirectory for the specific platform version under the Android SDK platforms directory, in which the android.jar file should exist.
  • The value of the following environment variables are used to calculate the platform string:
    • ANDROID_PLATFORM, ANDROID_API_LEVEL or ANDROID_SDK_VERSION
    • ANDROID_SDK_EXTENSION (optional)
  • The highest Android platform version found in the SDK platforms directory is used if the platform version is not set by environment variables.