Итак, я пытался реализовать Firebase в Android Studio, и это сообщение об ошибке продолжало появляться.
"Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 16.0.1."
Я знаю, что написано обновить. Но как мне это сделать?
Вот мой build.gradle для проекта
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.jbdelosreyes.finalmvp"
minSdkVersion 19
targetSdkVersion 28
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:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.4'
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'
}
apply plugin: 'com.google.gms.google-services'
и вот мой build.gradle для модуля
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.jbdelosreyes.finalmvp"
minSdkVersion 19
targetSdkVersion 28
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:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.4'
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'
}
apply plugin: 'com.google.gms.google-services'
Выложите, пожалуйста, свой файл build.gradle.
Здравствуй! извините, я новичок в этом. я отредактировал это сейчас
Перейдите в Android SDK и обновите - Сервис Google Play - Репозиторий Google
но нет доступных обновлений. так что я предполагаю, что это уже актуально
Если вы компилируете или реализуете свой модуль, в build.gradle (app) вам не нужно вызывать реализацию com.google.firebase: firebase-core: 16.0.1 'implementation' com.google.firebase: firebase-firestore: 17.0 .4 'или Покажите мне свой build.gradle (проект)
Я не совсем понимаю. но теперь мой build.gradle включен в вопрос. я редактировал это раньше
Вы проверяли и пробовали дубликат? это тот же вопрос @AnotherJuan
дубликат? где я могу увидеть эти дубликаты? или мне ввести этот вопрос в строку поиска?
Боже мой, действительно ответ уже был. Спасибо чувак! так я должен удалить этот пост сейчас?
Пожалуйста, редактировать вопрос и разместите здесь файлы
build.gradle(файлы Gradle как уровня проекта, так и уровня приложения)