2016-07-02 4 views
0

Google Base for quickstart을 사용하는 모든 로그인 방법을 사용하여 firebase로 로그인을 시도하고 있지만 콘솔에서 다음 오류가 발생했습니다.Firebase - Error in Error : 'app : processFacebookDebugGoogleServices'작업에 실행하지 못했습니다.

  1. 오류
  2. 앱/Gradle을
  3. 웹/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 
} 
+0

어디에서'com.google.firebase.quickstart.auth'를 사용 했습니까? 패키지 이름으로 바꾸십시오. 또는 귀하의 활동을 제공하십시오. –

답변

1
  1. 당신이 구글에서-services.json이있는 경우 앱 폴더 검사에 도착
  2. 당신이 중포 기지
  3. 개방에서 다운로드 할 필요가 존재하지 않는 경우 google-services.json 다음 패키지 이름이 다음과 같은지 확인하십시오. "package_name": "com.google.firebase.quickstart.auth"