0

firebaseリアルタイムデータベースでこのlink.を使用して作業します。第六工程の後に、それは解決できませんでした:com.google.firebase:firebase-core:9.6.1

エラーを解決できませんでした提供します。

build.gradleアプリケーションモジュール:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "gc.imageuploader" 
     minSdkVersion 14 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    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:appcompat-v7:23.4.0' 
    compile 'com.google.firebase:firebase-database:9.6.1' 
} 
apply plugin: 'com.google.gms.google-services' 

build.gradleプロジェクトモジュール:

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.1.2' 
     classpath 'com.google.gms:google-services:3.0.0' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

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

だから、どのように私はこの問題を解決することはできますか?私は何をすべきか?この問題についてどう思いますか?

+0

Android SDKマネージャーに最新のGoogleリポジトリがあることを確認してください –

+0

どのようにすればよいですか?私は初心者です。 –

+1

ここで承認された回答からGoogle PlayサービスとGoogleレポジトリを更新する方法を確認してください。http://stackoverflow.com/questions/37310188/failed-to-resolve-com-google-firebasefirebase-core9-0-0?rq=1 –

答えて

1

Firebaseを使用している間がインストールと「Googleはサービスの再生」を「Googleのリポジトリ」をあなたはの最新バージョンを持っていることを確認してください。タブ> SDKツールの

  1. オープンAndroidのスタジオ
  2. Go]をメニューバーに>ツール>アンドロイド> SDK Managerの
  3. クリック
  4. チェックとをインストール ':

    手順の下に従ってください。 Google Playサービスの'Googleリポジトリ'

  5. [適用]をクリックしてダウンロードを待ちます

最後に、同期ビルド再びプロジェクト。

関連する問題