无法解决:`com.google.android.gms:play-services-appindexing:10.0.0` [英] Failed to resolve: `com.google.android.gms:play-services-appindexing:10.0.0`

查看:86
本文介绍了无法解决:`com.google.android.gms:play-services-appindexing:10.0.0`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置 compile'c​​om.google.android.gms:play-services-appindexing:10.0.0'时,出现以下错误:

While setting compile 'com.google.android.gms:play-services-appindexing:10.0.0' it is giving following error:

Error:(82, 13) Failed to resolve: com.google.android.gms:play-services-appindexing:10.0.0

,同时设置 compile'c​​om.google.android.gms:play-services-appindexing:9.8.0'时,出现以下错误:

and while setting compile 'com.google.android.gms:play-services-appindexing:9.8.0' it is giving following error:

Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.0.0.

如果有人能告诉我这是怎么回事,将不胜感激,因为rest play服务10.0.0版可以正常工作.

It would be grateful if someone can tell me whats wrong with this because rest play services version 10.0.0 working fine.

我的build.gradle文件

my build.gradle file

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.22.0'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    signingConfigs {

    }
    compileSdkVersion 25
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "com.example.app"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 41
        versionName "2.2.0"
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
            signingConfig signingConfigs.config
        }
    }
    lintOptions {
        checkReleaseBuilds false
    }
}

configurations {
    compile.exclude group: 'stax'
    compile.exclude group: 'xpp3'
}

repositories {
    maven {
        url "http://dl.bintray.com/microsoftazuremobile/SDK"
    }
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    //Microsoft azure
    compile 'com.microsoft.azure:azure-notifications-handler:1.0.1@aar'
    compile files('libs/notification-hubs-0.4.jar')

    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.android.support:recyclerview-v7:25.0.1'
    compile 'com.android.support:cardview-v7:25.0.1'
    compile 'com.android.support:design:25.0.1'
    compile 'com.android.support:palette-v7:25.0.1'

    compile 'com.google.android.gms:play-services-auth:10.0.0'
    compile 'com.google.android.gms:play-services-maps:10.0.0'
    compile 'com.google.android.gms:play-services-analytics:10.0.0'
    compile 'com.google.android.gms:play-services-gcm:10.0.0'
    compile 'com.google.android.gms:play-services-appindexing:10.0.0'
    compile 'com.google.android.gms:play-services-base:10.0.0'

    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.android.support:multidex:1.0.1'

    //Facebook SDK
    compile 'com.facebook.android:facebook-android-sdk:4.17.0'

}

apply plugin: 'com.google.gms.google-services'

推荐答案

现在Google Play服务版本10.0.1已发布,因此请替换此版本编译'com.google.android.gms:play-services-appindexing:10.0.0'

Now Google Play Services Version 10.0.1 has released so replace this compile 'com.google.android.gms:play-services-appindexing:10.0.0'

通过编译'com.google.firebase:firebase-appindexing:10.0.1'

这篇关于无法解决:`com.google.android.gms:play-services-appindexing:10.0.0`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆