apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.unittesting.basicunitandroidtest" minSdkVersion 9 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } } dependencies { // Testing-only dependencies // Force usage of support annotations in the test app, since it is internally used by the runner module. androidTestCompile 'com.android.support:support-annotations:' + rootProject.supportLibVersion; androidTestCompile 'com.android.support.test:runner:' + rootProject.runnerVersion; androidTestCompile 'org.hamcrest:hamcrest-library:' + rootProject.hamcrestVersion; }