I'm trying to make an app using the android support library, so if I start a new project with a basic activity, then add the android support library using the dependencies menu, I get this error:
This support library should not use a different version (24) than the `compileSdkVersion` (23)
This is what my gradle file looks like:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example.moore.criminalintent"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:24.0.0'
}
I've not touched any other settings apart from creating the project and adding the dependency. Any help in resolving this would be greatly appreciated.