All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.0, 27.0.2. Examples include com.android.support:animated-vector-drawable:27.1.0 and com.android.support:cardview-v7:27.0.2 less... (⌃F1)
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.)
// build.gradle (project)
// ...
allprojects {
// ...
// Force all of the primary support libraries to use the same version.
configurations.all {
resolutionStrategy {
// force "com.android.support:support-annotations:${versions.supportLibrary}"
// force 'com.google.code.findbugs:jsr305:3.0.0'
eachDependency { details ->
if (details.requested.group == 'com.android.support') {
details.useVersion versions.supportLibrary
}
}
}
}
}