【问题标题】:Failed to resolve: `com.google.android.gms:play-services-appindexing:8.4.0`无法解决:`com.google.android.gms:play-services-appindexing:8.4.0`
【发布时间】:2018-01-04 09:35:17
【问题描述】:

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'

【问题讨论】:

  • 尝试使用更新您的 google play 服务库。
  • 全部更新..
  • @SajjadAli 在下面查看我的答案。 appindexing 库已移动。

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


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

    试试这个

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

    【讨论】:

      【解决方案3】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-04-15
        • 2018-11-23
        • 1970-01-01
        • 1970-01-01
        • 2016-10-09
        • 2017-03-06
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多