конфликтные версии андроид студии - PullRequest
0 голосов
/ 31 мая 2018

У меня следующая проблема, и я не могу собрать свое приложение

Найдены play-services: 12.0.1, но для плагина google-services требуется версия 11.4.2.

FAILURE: Сбой сборки с исключением.

  • Что пошло не так: Не удалось выполнить задачу ': lib_baselibs: processDebugGoogleServices'.

    Исправьте конфликт версий, либо обновив версию плагина google-services (информация о последней версии доступна по адресу https://bintray.com/android/android-tools/com.google.gms.google-services/), либо обновив версию com.google.android.gms до11.4.2.

это версии, которые я использую

ext.kotlin_version = '1.2.41'
ext.support_version = '27.1.1'
ext.google_version = '12.0.1'
ext.firebase_version = '12.0.1'

1 Ответ

0 голосов
/ 31 мая 2018

Избегайте того же номера версии и обновляйте до последней версии, используйте сервисы Google Play:

classpath 'com.google.gms:google-services:4.0.1'

И обновляйте firebase на основе этой ссылки до последней версии, как показано ниже (выберитевам нужно):

    implementation 'com.google.firebase:firebase-core:16.0.0'
    implementation 'com.google.firebase:firebase-ads:15.0.1'
    implementation 'com.google.firebase:firebase-analytics:16.0.0'
    implementation 'com.google.firebase:firebase-appindexing:15.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.1'
    implementation 'com.google.firebase:firebase-firestore:17.0.1'
    implementation 'com.google.firebase:firebase-functions:16.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.0.0'
    implementation 'com.google.firebase:firebase-storage:16.0.1'
    implementation 'com.google.firebase:firebase-crash:16.0.0'
    implementation 'com.google.firebase:firebase-invites:16.0.0'
    implementation 'com.google.firebase:firebase-perf:16.0.0'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.google.firebase:firebase-config:16.0.0'

А также убедитесь, что вы используете последнюю версию com.google.android.gms: игровые сервисы типа (пример) на основе по этой ссылке :

    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.google.android.gms:play-services-places:15.0.1'
    implementation 'com.google.android.gms:play-services-gcm:15.0.1'
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...