Я устанавливаю плагин для отправки сообщений в облачную базу с помощью своего приложения для Android. Я сталкиваюсь с проблемой зависимости. Ошибка приведена ниже описания.
"Библиотека com.google.android.gms: база измерений play-services-запрашивается различными другими библиотеками по адресу [[16.3.0,16.3.0], [16.4.0,16.4.0]] , но разрешается до 16.4.0. Отключите плагин и проверьте дерево зависимостей, используя ./gradlew: app: dependencies. "
Module App gradle File:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:animated-vector-drawable:26.1.0'
implementation 'com.android.support:support-v4:26.0.1'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-annotations:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation project(':lib')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.1'
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-ads:17.2.0'
implementation 'com.patrickpissurno:ripple-effect:1.3.1'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
}
apply plugin: 'com.google.gms.google-services'
Project Gradle File:
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
Я ожидаю успешной синхронизации и сборки моего проекта Android. После этого я смогу реализовать FCM в своем проекте.