Сбой синхронизации проекта Gradle в Android Studio 3.2 - PullRequest
0 голосов
/ 28 марта 2019

Я не могу построить свой проект из-за этой ошибки

ОШИБКА: библиотека com.google.android.gms: play-services-basement запрашивается различными другими библиотеками по адресу [[15.0.1,15.0.1]], но преобразуется в 16.0.1. Отключите плагин и проверьте дерево зависимостей, используя ./gradlew: app: dependencies.

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    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.google.firebase:firebase-database:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.3'
    implementation 'com.google.firebase:firebase-storage:16.0.2'
    implementation 'com.google.firebase:firebase-messaging:17.5.0'
    implementation 'com.firebaseui:firebase-ui-database:4.3.1'
    implementation 'com.github.jgabrielfreitas:BlurImageView:1.0.1'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:animated-vector-drawable:28.0.0-alpha1'
    implementation 'com.android.support:support-media-compat:28.0.0-alpha1'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.rengwuxian.materialedittext:library:2.1.4'
    implementation 'com.google.android.gms:play-services-analytics:16.0.0'
}
apply plugin: 'com.google.gms.google-services'

Ответы [ 3 ]

0 голосов
/ 28 марта 2019

Я думаю, что проблема в Пикассо версия библиотеки

0 голосов
/ 28 марта 2019

Попробуйте поменять игровые сервисы с

implementation 'com.google.android.gms:play-services-analytics:16.0.0' to 
implementation 'com.google.android.gms:play-services-analytics:15.0.1'

и попробуйте добавить следующие репозитории в проект build.gradle

allprojects {
    repositories {
        google()
        jcenter()
    }
}
0 голосов
/ 28 марта 2019

Вам необходимо обновить все библиотеки Play Services и Firebase до их последней версии.

Вы можете найти последнюю версию каждой библиотеки здесь https://mvnrepository.com/

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