2016-08-20 5 views
1

最新のGoogle Playサービス9.4.0にアップデートしようとしています。アプリケーションレベルのクラスパスを2.1.2にして、6月3日の最新リリースであると思われる場合、linkのエラーを解決できません。Googleサービス。 com.google.gms:google-services:2.1.2;サービス測定を解決できませんでした

エラー:解決に失敗しました:com.google。 android.gms:play-services-measurement:9.4.0 リポジトリと同期プロジェクトをインストール

私はすでにSDKマネージャでパッケージを更新しています。 クラスパスを3.0.0としておくと、5月のリリースではOKだったようです。 2.1.2バージョンのクラスパスでこのようなエラーが発生する理由は何ですか?私のgradleファイルについては以下を参照してください。 Androidスタジオバージョン:2.1.3。助けをお待ちしています。プロジェクトレベルbuild.gradle

buildscript { 
    repositories { 
     jcenter() 
     mavenLocal() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.1.3' 
     classpath 'com.google.gms:google-services:2.1.2' 
     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
     mavenLocal() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

build.gradleアプリレベル:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "com.example.main.projectone" 
     minSdkVersion 18 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 


    compile('com.facebook.android:facebook-android-sdk:4.7.0') { 
     exclude module: 'bolts-android' 
    } 

    compile 'com.android.support:appcompat-v7:24.0.0' 

    compile 'com.android.support:design:24.0.0' 
    compile 'com.parse:parse-android:1.13.0' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'com.github.bumptech.glide:okhttp3-integration:[email protected]' 
    compile 'com.squareup.okhttp3:okhttp:3.3.1' 
    compile 'com.android.support:cardview-v7:24.0.0' 
    compile 'com.android.support:support-v4:24.0.0' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.1' 
    compile 'de.hdodenhof:circleimageview:2.1.0' 
    compile 'com.android.support:recyclerview-v7:24.0.0' 
    compile 'com.firebase:geofire-android:2.0.0' 

    compile 'com.google.android.gms:play-services:9.4.0' 
    compile 'com.google.firebase:firebase-auth:9.4.0' 
    compile 'com.google.firebase:firebase-storage:9.4.0' 
} 

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

答えて

1

あなたは、Googleがサービスプラグインを果たして使用する必要がバージョン9.4.0を使用しているのでv 3.0.0:

セットアップについてはを参照してください。

+0

返信いただきありがとうございますGabriele、私は同意します。 firebaseのドキュメントにgoogle-services:3.0.0があります。私は、2006年6月3日のリリース、つまり最新のリリースを想定しているバージョン2.1.2で動作しないのはなぜだろうかと思っています。いずれにしても、少なくとも私は3.0.0で進んでいます。 – BenedictThe