The release of BlackBerry Dynamics SDK for Android version 10.0 brought along with it a new capability that will simplify the build process for Android projects. BlackBerry is now providing a Maven repository to access this SDK. This simplifies previous methods of either manually downloading the SDK or using the Android Update Site and directly referencing the SDK’s location on your hard drive. Making this change will allow your projects to be more portable and built on different systems without requiring changes related to the SDK’s location. It should also make it easier to switch between versions of the BlackBerry Dynamics SDK.
Note that version 10.0 and higher are available in the BlackBerry Maven repository, so the previous method of integration will still need to be used for projects that are using older versions.
Let’s walk through what you need to do to make this switch in your Android Studio Project. You’ll be able to accomplish this in 2 quick and easy steps.
Step 1 – Remove Direct Reference to the BlackBerry Dynamics AAR File
Open the build.gradle for your project and locate the direct reference to the BlackBerry Dynamics AAR file. It will look something like this: