public static int getAndroidVersionNumber() {
    if (androidSdkFolder() != null) {
      String versionString = androidSdkFolder().getName();
      log.info("Android SDK folder name is: " + versionString);
      Pattern p = Pattern.compile(PLATFORM_VERSION_REGEX);
      Matcher matcher = p.matcher(versionString);
      if (matcher.matches()) {
        return Integer.parseInt(matcher.group(1));
      } else {
        log.warning("Could not identify Android SDK version number " +
                "from the sdk folder name !");
      }
    }
   throw new SelendroidException("Could not identify the Android SDK version number");
  }
@return path to android.jar of latest android api.
selendroid-standalone/src/main/java/io/selendroid/standalone/android/AndroidSdk.java