2016-11-28 11 views
0

これはGradleアプリケーションコードです。
はコンパイルできません。
私の髪の毛がバグを起こさないようにします。
誰かここにpingしてください!エラー:解決に失敗しました:com.google.firebase:firebase-appindexing:9.6.1

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.3" 

    defaultConfig { 
     applicationId "com.google.firebase.codelab.friendlychat" 
     minSdkVersion 16 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner   "android.support.test.runner.AndroidJUnitRunner" 
    } 
    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.android.support:design:24.2.1' 
    compile 'com.github.bumptech.glide:glide:3.6.1' 
    compile 'de.hdodenhof:circleimageview:1.3.0' 
    compile 'com.android.support:appcompat-v7:24.2.1' 

    // Google 

    compile 'com.google.android.gms:play-services-auth:9.6.1' 


    // Firebase 

    compile 'com.google.firebase:firebase-database:9.6.1' 
    compile 'com.google.firebase:firebase-auth:9.6.1' 



    compile 'com.google.firebase:firebase-config:9.6.1' 
    compile 'com.google.android.gms:play-services-appinvite:9.6.1' 
    compile 'com.google.firebase:firebase-messaging:9.6.1' 
    compile 'com.google.android.gms:play-services-ads:9.6.1' 
    compile 'com.google.firebase:firebase-crash:9.6.1' 

    This line getting error please anybody get in touch 

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

} 

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

答えて

3

私はappindexingの歴史の説明を見つけることができませんでしたが、前に10.0.0に、クイックスタートプロジェクトのrevision historyを見てから、パッケージ名が異なっていました。あなたの依存関係でこれを試してください:

compile 'com.google.android.gms:play-services-appindexing:9.6.1' 

この回答は、10.0.0より前のAPIの機能を使用していることを前提としています。 Migration Guideはその違いを説明しています。

+0

私の火災基地API 9.6.1それは動作しませんでした。 – jsroyal

2

Firebaseバージョン9.8.0以下を使用している場合は、com.google.android.gms:play-services-appindexing:<VERSION>の形式を使用します。バージョン10.0.0以上を使用している場合は、com.google.firebase:firebase-appindexing:<VERSION>の形式を使用します。名前はバージョン10.0.0で変更されました。

あなたがこれをしようとしたときにエラーを「解決できない」になっている場合は、あなたのGoogleは、この手順に従ってサービスSDKを再生する更新: Failed to resolve: com.google.firebase:firebase-core:9.0.0

0

実はそれはAPIのエラーやバグもGoogleに報告されました。 エラーだけです。

関連する問題