Class AndroidSdkUtil
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.AndroidSdkUtil
Utility routines to retrieve the Android SDK and Android NDK locations.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlistNDKFolders(boolean cached) List Android NDK folders available under the SDK.static FilelocateBestNDK(boolean cached) Locate the newest Android NDK folder available under the SDK.static FilelocateSDK(boolean cached) Locate the Android SDK folder.
-
Field Details
-
legacySdkLocationVar
See https://developer.android.com/tools/variables- See Also:
-
currentSdkLocationVar
See https://developer.android.com/tools/variables- See Also:
-
-
Method Details
-
locateSDK
Locate the Android SDK folder.- Parameters:
cached- true to reuse a previously located folder- Returns:
- the SDK folder
- Throws:
IOException- if the SDK folder cannot be located
-
listNDKFolders
List Android NDK folders available under the SDK.- Parameters:
cached- true to reuse a previously built list- Returns:
- a sorted map of NDK versions to folders
- Throws:
IOException- if the SDK folder cannot be located
-
locateBestNDK
Locate the newest Android NDK folder available under the SDK.- Parameters:
cached- true to reuse a previously located folder- Returns:
- the selected NDK folder
- Throws:
IOException- if no NDK folder can be located
-