首页 > 解决方案 > android studio:依赖错误

问题描述

我是安卓工作室的新手。我试图将实现添加'com.google.android.gms:play-services:15.0.1'到我的项目中,但出现错误。

这是我的依赖

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.android.support:cardview-v7:26.1.0'

    implementation 'com.android.support:recyclerview-v7:26.1.0'

    implementation 'com.android.support:appcompat-v7:26.1.0'

    implementation 'com.google.firebase:firebase-core:16.0.0'

    implementation 'com.google.firebase:firebase-database:16.0.1'

    implementation 'com.google.firebase:firebase-storage:16.0.1'

    implementation 'com.google.firebase:firebase-auth:16.0.1'

    implementation 'com.firebaseui:firebase-ui-database:4.0.0'

    implementation 'com.firebaseui:firebase-ui-auth:4.0.0'

    implementation 'com.android.support.constraint:constraint-layout:1.1.0'

    implementation 'com.android.support:design:26.1.0'

    implementation 'com.google.android.gms:play-services-maps:15.0.1'

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

    implementation 'com.android.support:support-v4:26.1.0'

    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'
}
apply plugin: 'com.google.gms.google-services'

你能帮我解决这个问题吗?我被困了一个星期。:(

标签: androiddependencies

解决方案


推荐阅读