Я новичок в android разработке и только что перешел на android x с моим проектом. Файлы синхронизируются c правильно, но когда я пытаюсь установить его на устройство, оно выдает следующее
Исправьте конфликт версий, либо обновив версию плагина google-services (информация о последних версия доступна на https://bintray.com/android/android-tools/com.google.gms.google-services/) или обновление версии com.google. android .gms до 16.0.9.
так выглядит мой build.gradle как
apply plugin: 'com.android.application'
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.3'
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
implementation(project(path: ":CordovaLib"))
implementation "com.google.android.gms:play-services-base:17.1.0"
implementation "com.google.android.gms:play-services-ads:17.1.0"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "com.google.firebase:firebase-core:17.2.2"
implementation 'androidx.annotation:annotation:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation "me.leolin:ShortcutBadger:1.1.17@aar"
implementation "com.google.firebase:firebase-messaging:18.0.0"
// SUB-PROJECT DEPENDENCIES END
}