# Class: com.pnfsoftware.jeb.core.units.code.android.AndroidSdkUtil

Utility routines to retrieve the Android SDK and Android NDK locations.

## Static Field: currentSdkLocationVar
Type: `java.lang.String`

Constant value: `ANDROID_HOME`
Description: See https://developer.android.com/tools/variables

## Static Field: legacySdkLocationVar
Type: `java.lang.String`

Constant value: `ANDROID_SDK_ROOT`
Description: See https://developer.android.com/tools/variables

## Static Method: listNDKFolders
- parameter: `cached`, type: `boolean`
- return type: `java.util.SortedMap<java.lang.String,java.io.File>`

Description: List Android NDK folders available under the SDK.
parameter: cached: true to reuse a previously built list
return: a sorted map of NDK versions to folders
throws: if the SDK folder cannot be located

## Static Method: locateBestNDK
- parameter: `cached`, type: `boolean`
- return type: `java.io.File`

Description: Locate the newest Android NDK folder available under the SDK.
parameter: cached: true to reuse a previously located folder
return: the selected NDK folder
throws: if no NDK folder can be located

## Static Method: locateSDK
- parameter: `cached`, type: `boolean`
- return type: `java.io.File`

Description: Locate the Android SDK folder.
parameter: cached: true to reuse a previously located folder
return: the SDK folder
throws: if the SDK folder cannot be located

