我在下一行收到警告
implementation 'com.android.support:appcompat-v7:28.0.0'
警告:
All com.android.support libraries must use the exact same version specification
(mixing versions can lead to runtime crashes).
Found versions 28.0.0, 24.0.0.
Examples include com.android.support:animated-vector-drawable:28.0.0
and com.android.support:mediarouter-v7:24.0.0
Inspection info:There are some combinations of libraries, or tools and libraries,
that are incompatible, or can lead to bugs.
One such incompatibility is compiling with a version of
the Android support libraries that is not the latest version
(or in particular, a version lower than your targetSdkVersion).
Issue id: GradleCompatible
下面是我的 build.gradle(app) 代码(Firebase 库的新更新)
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.vanessa.orderfoodserver"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//Add Library
implementation 'com.jaredrummler:material-spinner:1.1.0'
//Firebase
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.firebaseui:firebase-ui-database:4.3.1'
implementation 'com.google.firebase:firebase-database:16.0.6'
implementation 'com.google.firebase:firebase-core:16.0.6'
}
apply plugin: 'com.google.gms.google-services'
我试图添加
com.android.support:support-v4:28.0.0
com.android.support:animated-vector-drawable:28.0.0
com.android.support:mediarouter-v7:28.0.0
但警告仍然存在。
我可以运行我的应用程序,但我仍想修复此警告。谢谢!
Smart猫小萌
饮歌长啸
相关分类