2016-11-01 22 views
13

私のアプリでFirebaseを使用しようとしています。エラー:(27、13)解決に失敗しました:com.google.firebase:firebase-core:9.8.0

のGradleへの3行を追加した後、私はこのエラーを取得する:私はこのエラーを取得していますなぜ

this is in the application Gradle this is something else this is in the application Gradle

:ここ

Error:(27, 13) Failed to resolve: com.google.firebase:firebase-core:9.8.0

は、私のコードのいくつかの画像であり、 ?

+0

あなたはプラグインを適用する追加しました:Gradleの –

+0

の 'com.google.gms.google-サービス' ええ、私はすでに – SaTech

+0

これを追加し、あなたがクラスパス「com.google.gmsを追加しました:google-services:3.0.0 ' –

答えて

16

Googleのリポジトリとその関連repostoriesが最新バージョンに更新されていることを確認してください。 SDK Manager - > Extrasセクションに移動して確認してください。

enter image description here

Firebase Doc Link

+0

感謝を..thanksある – SaTech

+0

それは働いた.....ありがとう – SaTech

1

としては、hereを説明し、この追加:プロジェクトレベルのGradleファイルとアプリケーションレベルのGradleファイルのこの1で

dependencies { 
     // ... 
     classpath 'com.google.gms:google-services:3.0.0' 
    } 

を:

dependencies { 
    compile 'com.google.firebase:firebase-core:9.8.0' 
} 
apply plugin: 'com.google.gms.google-services' 
+0

t ...私はあなたがそれが働いた歓迎 – SaTech

8

私が推測するには、Googleのリポジトリを更新する必要があります。 SDKマネージャを実行して、アップデートがあるかどうか確認してください。 >エクストラと更新のチェック - SDK Managerに、試料中のコメントhere

dependencies { 
    // ... 
    compile 'com.google.firebase:firebase-core:9.8.0' 

    // Getting a "Could not find" error? Make sure you have 
    // the latest Google Repository in the Android SDK manager 
} 

Getting a "Could not find" error? Make sure you have the latest Google Repository in the Android SDK manager

ゴーで

ルック。

SDK manager's snapshot

+0

おかげで、スクリーンショットを含むように質問を修正しました私はこの解決策を試しています – SaTech

+0

このソリューションをしようとしているハンクスズバイルはあなたの助けのために...私は前にそれらを追加し、私は私のコードから仲間たくさん – mallaudin

+0

がたくさん – SaTech

関連する問題