Я устанавливаю firebase для своего проекта, и когда я добавляю inappmessaging-display lib, появляется эта ошибка:
Зависимость разрешена в несовместимую версию:
Зависимость (fromArtifactVersion = ArtifactVersion (идентификатор_группы = com.google.firebase,
artifactId = Firebase-Messaging, версия = 17.3.2),
toArtifact = артефакт (идентификатор_группы = com.google.firebase,
artifactId = firebase-iid), toArtifactVersionString = [17.0.2]) FAILURE:
Сбой сборки за исключением.
* Что пошло не так: не удалось захватить отпечаток входных файлов для задачи ': app: preDebugBuild' свойство 'compileManifests' во время
актуальная проверка. В проекте 'app' разрешены сервисы Google Play
зависимость библиотеки зависит от другого в точной версии (например,
«[17.0. 2]», но не разрешается до этой версии. Поведение
выставленная библиотека будет неизвестна.
Ошибка зависимости: com.google.firebase: firebase-messaging: 17.3.2 -> com.google.firebase: firebase-iid @ [17.0.2], но версия fire base-iid была 17.0.3.
Следующие зависимости являются проектными зависимостями, которые являются прямыми или имеют переходные зависимости, которые приводят к художественному действию
с вопросом. - «Приложение» проекта зависит от
com.google.firebase: firebase-iid@17.0.3 - зависит от проекта приложения
на com.google.firebase: firebase-messaging@17.3.2 - «Приложение» проекта
зависит от com.google.firebase: firebase-ads@17.1.2 - Проект
«приложение» зависит от
com.google.firebase: firebase-inappmessaging-display@17.0.4 -
Проектное приложение зависит от
com.google.firebase: firebase-analytics@16.0.6 - «Приложение» проекта
зависит от com.google.firebase: firebase-analytics-impl@16.2.4 -
Проектное приложение зависит от
com.google.firebase: firebase-inappmessaging@17.0.4 - «Приложение» проекта
зависит от com.google.firebase: firebase-core@16.0.6 - проект
«приложение» зависит от
com.google.firebase: firebase-measurement-connector-impl@17.0.4 -
«Приложение» проекта зависит от com.google.firebase: firebase-config@16.1.3
- «Приложение» проекта зависит от com.google.firebase: firebase-crash@16.2.1 - «Приложение» проекта зависит
на com.google.firebase: firebase-abt@16.0.1 - «Приложение» проекта
зависит от com.google.firebase: firebase-perf@16.2.3 - Проект
«приложение» зависит от
com.google.android.gms: play-services-measurement-api@16.0.4
Для расширенной информации отладки выполните Gradle из командной строки с помощью ./gradlew --info: app: assemblyDebug, чтобы увидеть зависимость dep
пути к артефакту. Это сообщение об ошибке пришло от
плагин google-services Gradle, сообщайте о проблемах на https://
github.com/google/play-services-plugins и отключите, добавив
"googleServices {disableVersionCheck = false}" в ваш build.gradle
файл.
project file
buildscript {
ext.kotlin_version = '1.3.11'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.2.0'
classpath ('com.google.firebase:firebase-plugins:1.1.5')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'com.gradle.build-scan' version '1.16'
}
ext {
support_library_version = '28.0.0' //use the version of choice
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
app gradle file
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.orafaelsc.pocapp"
minSdkVersion 25
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:animated-vector-drawable:$support_library_version"
implementation "com.android.support:exifinterface:$support_library_version"
implementation "com.android.support:cardview-v7:$support_library_version"
implementation "com.android.support:customtabs:$support_library_version"
implementation "com.android.support:support-media-compat:$support_library_version"
implementation "com.android.support:support-v4:$support_library_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.android.support:appcompat-v7:$support_library_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
//Play services dependencies
implementation('com.google.android.gms:play-services-plus:15.0.1')
implementation('com.google.android.gms:play-services-gcm:15.0.1')
implementation('com.google.android.gms:play-services-maps:15.0.1')
implementation('com.google.android.gms:play-services-ads:15.0.1')
implementation('com.google.android.gms:play-services-location:15.0.1')
implementation('com.google.android.gms:play-services-analytics:16.0.3')
implementation('com.google.android.gms:play-services-basement:15.0.1')
implementation('com.google.android.gms:play-services-auth:16.0.0')
implementation('com.google.android.gms:play-services-drive:15.0.1')
//General google dependencies
implementation('com.android.installreferrer:installreferrer:1.0')
implementation('com.android.billingclient:billing:1.2')
//Firebase dependencies
implementation('com.google.firebase:firebase-core:16.0.6')
implementation('com.google.firebase:firebase-perf:16.2.3')
implementation('com.google.firebase:firebase-ads:17.1.2')
implementation('com.google.firebase:firebase-crash:16.2.1')
implementation('com.google.firebase:firebase-config:16.1.3')
implementation('com.google.firebase:firebase-messaging:17.3.2')
implementation('com.google.firebase:firebase-inappmessaging:17.0.4')
implementation('com.google.firebase:firebase-inappmessaging-display:17.0.4')
}
apply plugin: 'com.google.gms.google-services'
Я уже обновил все библиотеки до последних версий.