我正在尝试使用 android 支持库制作一个应用程序,所以如果我开始一个具有基本活动的新项目,然后使用依赖项菜单添加 android 支持库,我会收到此错误:
This support library should not use a different version (24) than the `compileSdkVersion` (23)
这是我的 gradle 文件的样子:
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'
}
除了创建项目和添加依赖项之外,我没有触及任何其他设置。任何解决此问题的帮助将不胜感激。