Your CompileSDKVersion and your TargetSDKVersion should be the same:
android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { applicationId "com.judeochalifu.dribsndrabs" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" }
If you are confused about which version number to use, go to the Android SDK Manager , find the API level that you are using (which should always be the last), and there you will find the version to use (Android 7 (API 24) as at the time of writing) .

As for minSDKVersion , the best place to check which you need to use is to go to the Create New Project window (Android Studio here), Google will help you choose the best one that will be used at the moment:

source share