ForgeRock SDKs 3.3

Add build dependencies

To use the ForgeRock Android SDK, you need to add the relevant dependencies to your project.

You may require additional dependencies to provide the features you intend to implement.

Add the following dependency:

ForgeRock Android SDK (Required) - org.forgerock:forgerock-auth:3.2.0

  1. In the Project tree view of your Android Studio project, open the app/build.gradle file for the module.

  2. In the dependencies section, add the following:

    implementation 'org.forgerock:forgerock-auth:3.2.0'

    The resulting section should resemble the following:

    dependencies {
      implementation 'org.forgerock:forgerock-auth:3.2.0'
      implementation 'androidx.appcompat:appcompat:1.4.0'
      implementation 'com.google.android.material:material:1.4.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    }
  3. When saving the file, Android Studio reports that the Gradle files have changes.

    Click Sync Now to refresh the project.

    If you do not see this message, on the File menu, click Sync Project with Gradle Files.

Copyright © 2010-2022 ForgeRock, all rights reserved.