apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.example.msatheesh.ccm_automation_beta" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" useLibrary 'org.apache.http.legacy' testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/ECLIPSE_.SF' exclude 'META-INF/ECLIPSE_.RSA' } configurations { all*.exclude group: 'commons-logging', module: 'commons-logging' } dexOptions { javaMaxHeapSize "4g" //specify the heap size for the dex process preDexLibraries = false //delete the already predexed libraries } repositories { maven { url "https://maven.google.com" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) def supportLibrary = '26.0.1' compile "com.android.support:appcompat-v7:$supportLibrary" compile "com.android.support.constraint:constraint-layout:1.0.2" compile "com.android.support:design:$supportLibrary" compile "com.android.support:multidex:1.0.0" //testCompile 'junit:junit:4.12' // https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.0' // https://mvnrepository.com/artifact/org.testng/testng testCompile group: 'org.testng', name: 'testng', version: '6.11' compile 'io.appium:java-client:4.1.2' compile ('com.squareup.retrofit:converter-simplexml:2.0.0-beta2') { exclude group: 'xpp3', module: 'xpp3' exclude module: 'stax-api' exclude module: 'stax' } }