【发布时间】:2019-06-27 15:19:16
【问题描述】:
当我按照 firebase 说明添加时:
classpath 'com.google.gms:google-services:4.2.0'
到dependencies 和:
implementation 'com.google.firebase:firebase-core:17.0.0'
到dependencies 也是,突然我在dependencies 的这一行收到错误:
implementation 'com.android.support:appcompat-v7:27.1.1'
这是错误信息:
Dependencies using groupId com.android.support and androidx.* can not be combined but found IdeMavenCoordinates{myGroupId='com.android.support', myArtifactId='animated-vector-drawable', myVersion='27.1.1', myPacking='aar', myClassifier='null'} and IdeMavenCoordinates{myGroupId='androidx.lifecycle', myArtifactId='lifecycle-viewmodel', myVersion='2.0.0', myPacking='aar', myClassifier='null'} incompatible dependencies less... (⌘F1)
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).
我该怎么办?为什么添加 firebase 后会出现这种情况?
【问题讨论】: