Skip Navigation

Add .aar files 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>:<artefact_ID>:<version>
    . For example:
    dependencies { compile 'com.blackberry.blackberrydynamics:android_handheld_platform:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_backup_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_samsung_pass_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_wearable_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_wearable_platform:4.0.0.3515' }