Я получаю эту ошибку и перепробовал все шаги, которые я нашел в Интернете.Ошибка говорит о том, что библиотека gms / firebase - неправильная версия, но в приложении нет зависимостей от firebase.
Ошибка:
"Все библиотеки gms / firebase должны использовать одну и ту же спецификацию версий (смешивание версий может привести к сбоям во время выполнения). Найденные версии 16.0.1,16.0.0. Примеры включают com.google.android.gms:play-services-base:16.0.1
и com.google.android.gms:play-services-maps:16.0.0
"
Зависимость com.google.android.gms:play-services-maps:16.0.0
не находится в моих зависимостях, и все же он говорит, что это неправильная версия по сравнению с картами play-services-maps.Я пытался изменить play-services-maps на 16.0.1, но эта версия не существует.Я также попытался добавить implementation 'com.google.android.gms:play-services-base:16.0.0'
в файл, но выдает ту же ошибку.
My Build.gradle (приложение)
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.nameomitted"
minSdkVersion 24
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:26.1.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.android.support:support-v4:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
My Build.gradle (проект)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Заранее спасибо