1. Home
  2. WalkMe Mobile
  3. Mobile: Setup and Integration
  4. Mobile: Android
  5. Mobile: How To Install and Update the Android WalkMe Mobile SDK Using Gradle

Mobile: How To Install and Update the Android WalkMe Mobile SDK Using Gradle

Updated on December 11, 2018
Download PDF

This article explains how to install and update the WalkMe Android SDK using Gradle Build Tool.

Steps For Installation and Updating

Install

  1. Modify build.gradle

    1. Ensure that jCenter is in under “allprojects” repositories:
      allprojects {
         repositories {
           jcenter()
      }
    2. Add abbisdk to the dependencies section. You can find WalkMe’s latest SDK version here:
      implementation ('abbi.io:abbisdk:+') {
            exclude module: 'support-v4'
            exclude module: 'appcompat-v7'
            exclude module: 'design'
            exclude module: 'recyclerview-v7'
      }
  2. Proguard

    1. If your app is using Proguard, add the following to the configuration: -keep class abbi.io.** {*;}
  3. Unit Tests

    1. If you have difficulty running your unit test tasks, add the following code to your Gradle file:
      testOptions { unitTests.all { jvmArgs '-noverify' } }
  4. Gradle Install

    1. You may click on “Sync Now” in Android Studio, or open the Terminal pointing to your project root and run the following command: gradle install
  5. Integrate Your App

    1. The final step is copying the link at the bottom of the new app page and placing it in your MainActivity. Choose “Android” and follow these instructions:
      1. In your MainActivity import section, add: import abbi.io.abbisdk.ABBI;
      2. Within the onCreate function, include the following:
        // Java:
        ABBI.start("<YOUR_APP_KEY>", "<YOUR_APP_SECRET>", getApplication());
        // Kotlin:
        ABBI.start("<YOUR_APP_KEY>", "<YOUR_APP_SECRET>", application);
  6. Verify the integration by looking for this line in your logs: ABBI SDK
    • There you should find the current version of the SDK and the app ID you are using.

You’re done! The WalkMe Console should now identify the app and confirm the integration.

Update

You must re-build your project, after which Gradle will fetch the last SDK version from JCenter. Find the latest Android SDK version here.

Was this article helpful?

Related Articles