Skip Navigation

Configure an existing Android project

These steps assume you have a project already created and a 
libs
 directory in that project. The 
libs
 directory must not be at the top level of your project. It must be at the same level as your 
build.gradle
 file.
  1. Download and unzip the 
    BlackBerry Dynamics Launcher Library
    .
  2. Change the directory to 
    GoodLauncherLibrary
     and copy the file 
    launcherlib.aar
     to the 
    libs
     directory described in the prerequisites below.
  3. Make the following declarations in your 
    build.gradle
     file, as shown in these snippets:
    1. Declare a dependency on the 
      launcherlib.aar
       library and 
      gd
       library:
      dependencies { implementation(name: 'launcherlib', ext: 'aar' implementation(name: 'gd', ext: 'aar') }
    2. Declare the 
      libs
       directory as a repository:
      repositories{ flatDir { dirs 'libs' } }
    3. Add the 
      Android
       support library dependencies:
      dependencies { implementation 'com.android.support:support-v13:28.0.0' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0' }
  4. Copy the BlackBerry Dynamics SDK release .aar file to <your_project_directory>/app/libs/gd.aar.
  5. To build your project with 
    Gradle
    , use either 
    gradle--info --stacktrace clean assembleDebug 
     or 
    gradle --info --stacktrace clean assembleRelease