Using Maven if you installed the SDK using the 
Android
 SDK Manager

If you installed the SDK using the 
Android
 SDK Manager
, the .aar files are added to the following path: ANDROID_HOME/extras/BlackBerry/dynamics_sdk/m2repository.
  1. Define the path to the .aar files in the build.gradle repositories block.
    Example: Hard-coded path
    allprojects { repositories { maven { url android.sdkDirectory.path+'/extras/blackberry/dynamics_sdk/m2repository' } //other maven URLs ... } }
    Example: Path from local properties
    allprojects { repositories { def localProperties = new File(rootDir, "local.properties") Properties properties = new Properties() localProperties.withInputStream { instr -> properties.load(instr) } def sdkDir = properties.getProperty('sdk.dir') maven { url sdkDir+'/extras/blackberry/dynamics_sdk/m2repository' } //other maven URLs ... } }
  2. Add 
    Gradle
     compile dependencies in the format 
    <group_ID>:<artifact_ID>:<version>
    . For example:
    dependencies { api 'com.blackberry.blackberrydynamics:android_handheld_platform:5.0.0.47' }
    The following artifacts are included in the SDK:
    • android_handheld_platform
    • android_handheld_wearable_support
    • android_wearable_platform
    • android_handheld_backup_support
    • android_handheld_samsung_pass_support
    • android_handheld_gd_safetynet
    • atsl