无法解决:`com.google.android.gms:play-services-appindexing:8.4.0`

时间:2017-07-28 10:42:51

标签: android android-studio sdk android-gradle build.gradle

android studio中的错误是什么?

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.google.firebase:firebase-auth:10.2.6'
    compile 'com.android.support:design:25.3.1'
    compile 'com.weiwangcn.betterspinner:library:1.1.0'
    compile 'com.google.firebase:firebase-database:10.2.6'
    compile 'com.google.firebase:firebase-storage:10.2.6'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:recyclerview-v7:25.2.0'
    compile 'com.android.support:cardview-v7:25.2.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'com.google.android.gms:play-services-appindexing:8.4.0'
    //adding glid library
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
        transitive = true;
    }
}
apply plugin: 'com.google.gms.google-services'

3 个答案:

答案 0 :(得分:0)

appindexing库已移至firebase。将以下内容添加到您应用的build.gradle文件中:)

compile 'com.google.firebase:firebase-appindexing:10.0.0' 

答案 1 :(得分:0)

试试这个

compile 'com.google.firebase:firebase-appindexing:10.0.0' 

答案 2 :(得分:0)

com.google.android.gms:play-services-appindexing:8.4.0已弃用,唯一的解决方案是将版本提升到最新版本 - 11.0.2