【发布时间】:2018-08-21 12:08:45
【问题描述】:
所有 com.android.support 库必须使用完全相同的版本
规范(混合版本可能导致运行时崩溃)。成立 版本 28.0.0-alpha1、26.1.0。例子包括 com.android.support:animated-vector-drawable:28.0.0-alpha1 和 com.android.support:customtabs:26.1.0 少... (Ctrl+F1) 有 一些库或工具和库的组合,它们是 不兼容,或者可能导致错误。一种这样的不兼容性是 使用不支持的 Android 支持库版本进行编译 最新版本(或者特别是低于您的 targetSdkVersion)。
我的 gradle 依赖项:-
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
对这个依赖的警告 -----------------
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
implementation 'com.memetix:microsoft-translator-java-api:0.6.2'
implementation 'com.google.firebase:firebase-crash:16.0.1'
implementation 'com.facebook.android:audience-network-sdk:4.+'
【问题讨论】:
-
查看link。
-
您使用的是不同版本的 firebase,这本身就很糟糕。他们每个人都使用它的支持库的 ovn 版本,这导致了这个消息
-
什么是compileSdkVersion?
-
compileSdkVersion 为 28
-
我正在使用最新版本的 firebase @VladyslavMatviienko
标签: android firebase android-gradle-plugin build.gradle