Сбой синхронизации уровня на уровне приложения после следующих шагов для подключения к firebase - PullRequest
0 голосов
/ 19 октября 2018
dependencies {
 implementation fileTree(dir: 'libs', include: ['*.jar'])
 implementation 'com.android.support:appcompat-v7:27.1.1'
 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'
 implementation 'com.google.firebase:firebase-core:16.0.1'
}

Причины ошибки:

implementation 'com.android.support:appcompat-v7:27.1.1'
same version specification (mixing versions can lead to runtime crashes)
says "All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 26.1.0. Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:support-media-compat:26.1.0"

1 Ответ

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

Вы должны добавить это после блока зависимостей

configurations.all {
   resolutionStrategy.eachDependency { DependencyResolveDetails details ->
     def requested = details.requested
     if (requested.group == 'com.android.support') {
        if (!requested.name.startsWith("multidex")) {
            details.useVersion '27.1.1'
        }
    }
}

Это удалит эту ошибку !!

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