【发布时间】:2018-05-28 08:18:13
【问题描述】:
如果您查看我的 2 个库,即 (support:appcompat-v7:24.2.1 和 support:design:25.3.1),它在红线上显示“此库不应使用其他版本 (25 ) 而不是 compileSDKVersion(24)。我应该将我的 SDK 更改为更高版本还是将我的支持库更改为低于 SDK 或高于 SDK 的版本?
android {
compileSdkVersion 24
buildToolsVersion "27.0.3"
lintOptions{
abortOnError false
}
defaultConfig {
applicationId "com.sangabriel.myrealapp"
minSdkVersion 23
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// Firebase
compile 'com.google.firebase:firebase-core:16.0.0'
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'
})
compile 'com.android.support:appcompat-v7:24.2.1'
testCompile 'junit:junit:4.12'
// Design library for Coordinator Layout and Toolbars
compile 'com.android.support:design:25.3.1'
【问题讨论】:
-
这个错误告诉你该怎么做。最好停止搜索解决方案简单的问题^^
标签: java android android-studio sdk