2017-11-30 10 views
2

なぜAndroidベースのプロジェクトにfirebase-adminを追加しようとすると、gradleは「バージョン5.5.0がGoogleサービスプラグインに必要な最小バージョン(9.0.0)よりも低い」と言いますが、バージョン5.5.0 firebase-adminこれは現時点で最新です。 WTH?私のandroidプロジェクトにfirebase-adminを追加するには?

build.gradle

dependencies { 
    implementation fileTree(include: ['*.jar'], dir: 'libs') 
    implementation 'com.android.support:appcompat-v7:26.1.0' 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.github.bumptech.glide:glide:4.3.1' 
    compile 'com.github.GrenderG:Toasty:1.2.5' 
    annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1' 
    compile group: 'com.google.firebase', name: 'firebase-admin', version: '5.5.0' 
    compile 'com.google.firebase:firebase-core:11.6.2' 
    compile 'com.google.firebase:firebase-database:11.6.2' 
    compile 'com.google.firebase:firebase-auth:11.6.2' 
    compile 'com.google.android.gms:play-services-auth:11.6.2' 
    implementation 'com.google.firebase:firebase-storage:11.6.2' 
    testImplementation 'junit:junit:4.12' 
    androidTestImplementation 'com.android.support.test:runner:1.0.1' 
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 
} 

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

答えて

3

firebase管理者は、Androidアプリで使用するためのものではありません。これは、あなたのコントロールするサーバからFirebaseサービスにアクセスするためのものです。 documentationに関するprequisitesから

作業を開始する前に、次のしていることを確認してください:それはすべての考えているので

- If using the Admin Node.js SDK, a server running Node.js 4.0+ 
- If using the Admin Java SDK, a server running Java 7+ 
- If using the Admin Python SDK, a server running Python 2.7+ or 3.x 
- A server app 

グーグル・サービスのプラグインは、あなたにその警告を与えていますグループ "com.google.firebase"を持つターゲットは、実際にはFirebase AndroidクライアントSDKであり、すべてがアプリで同じバージョンでなければなりません。

関連する問題