1. Ensure that your top-level build file has a classpath pointing to Gradle 3.0.0+.
  2. Add a repositories block.

    repositories{
                            flatDir{
                            dirs 'libs'
                            }
                            }
                            
                            
                            
                         
  3. To link the SDK AAR and the appropriate support library, create the dependencies block in your app-level Gradle file like the following block.

    dependencies {
                            compile fileTree(dir: 'libs', include: ['*.jar'])
                            compile (name: 'AirWatchSDK-18.7',ext : 'aar')
                            }
                            
                            
                            
                         

    An example of the dependencies block looks like the following:

    android {
                            compileSdkVersion 26
                            buildToolsVersion "26.0.1"
                            defaultConfig {
                            //Replace your package name here
                            applicationId "<packagename>"
                            minSdkVersion 15
                            targetSdkVersion 25
                            versionCode 1
                            versionName "1.0"
                            multiDexEnabled true
                            }
                            }
                            // Add Google repository
                            repositories {
                            ...
                            maven {
                            url “https://maven.google.com”
                            }
                            }