0
Google Baseコードfor quickstartを使用してすべてのログイン方法を使用してfirebaseでログインしようとしていますが、Firebase - Error in Error:タスク ':app:processFacebookDebugGoogleServices'の実行に失敗しました
- エラー
- アプリケーション/ Gradleの
- ウェブ/ Gradleの
Gradleのコンソールエラー
Parsing json file: E:\Git\FireBase All\quickstart-android-master\auth\app\google-services.json
:app:processFacebookDebugGoogleServices FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processFacebookDebugGoogleServices'.
> No matching client found for package name 'com.google.firebase.quickstart.auth'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
アプリケーション/ Gradleの
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.google.firebase.quickstart.auth"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
// Build variant to include the Facebook Android SDk
// The Facebook Android SDK has a min SDK version of 15
facebook {
minSdkVersion 15
}
// Build variant to exclude the Facebook Android SDK
// Firebase Authentication has a min SDK version of 9
nofacebook {
minSdkVersion 9
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:24.0.0'
// Firebase Authentication
compile 'com.google.firebase:firebase-auth:9.2.0'
// Google Sign In SDK (only required for Google Sign In)
compile 'com.google.android.gms:play-services-auth:9.2.0'
// Facebook Android SDK (only required for Facebook Login)
// This is only compiled into the 'facebook' variant of this app. You can build
// a 'nofacebook' variant to test on devices with SDK < 15.
facebookCompile 'com.facebook.android:facebook-android-sdk:4.9.0'
// Twitter Android SDK (only required for Twitter Login)
compile('com.twitter.sdk.android:twitter-core:[email protected]') {
transitive = true
}
compile('com.twitter.sdk.android:twitter:[email protected]') {
transitive = true;
}
}
apply plugin: 'com.google.gms.google-services'
ウェブ/ Gradleの
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
mavenLocal()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
どこで 'com.google.firebase.quickstart.auth'を使用しましたか?パッケージ名をそのまま置き換えてみてください。またはあなたの活動を私たちに提供してください。 –