Не удалось разрешить: firebase-messaging-15.0.0 - PullRequest
0 голосов
/ 02 октября 2018

Это мой сборочный билд (приложение)

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:support-v4:26.+'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.android.support:recyclerview-v7:26.+'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-auth:9.0.2'
implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'

}

В сборочном билде (проект)

buildscript {
repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.2.0'
    classpath 'com.google.gms:google-services:4.0.2'
}
}



allprojects {
repositories {
    google()
    jcenter()
    maven { url "https://maven.google.com" }
}
}

Вот ошибка

Не удалось устранить: firebase-messaging-15.0.0

Помощник Firebase показывает, что Зависимости установлены правильно, но Sycn терпит неудачу.Пожалуйста, помогите мне.

Ответы [ 5 ]

0 голосов
/ 08 ноября 2018

Удалить

implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'

добавить

implementation 'com.google.firebase:firebase-database:17.0.0'
0 голосов
/ 02 октября 2018

Измените это:

implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'

на это:

implementation 'com.google.firebase:firebase-messaging:17.3.2'

com.google.firebase - идентификатор группы

firebase-messaging - идентификатор артефакта

17.3.2 это версия

Проверьте версии здесь:

https://firebase.google.com/support/release-notes/android

0 голосов
/ 02 октября 2018

Либо используйте implementation 'com.google.firebase:firebase-messaging:17.0.0', либо implementation 'com.google.firebase:firebase-messaging:15.0.0'

0 голосов
/ 02 октября 2018

Следуя документации firebase , вы можете скачать с

implementation 'com.google.firebase:firebase-messaging:17.3.0'
0 голосов
/ 02 октября 2018

Попробуйте изменить версию сообщений Firebase на 17.3.2, например

внедрение 'com.google.firebase: firebase-message: 17.3.2'

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...