title: Google sign-in Android with Firebase - statusCode DEVELOPER_ERROR
body: <p>I try to implement Google login in my Firebase connected Android app.
  When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActivityResult: 
  <strong>Status{statusCode=DEVELOPER_ERROR, resolution=null}</strong>.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  
      if (requestCode == REQUEST_CODE_GOOGLE_LOGIN) {
          GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
  
          if (result.isSuccess()){
              GoogleSignInAccount account = result.getSignInAccount();
              String emailAddres = account.getEmail();
              getGoogleQAuthToken(emailAddres);
          }
      }
  }
  
           private void getGoogleQAuthToken(final String emailAddres){
               AsyncTask&lt;Void,Void,String&gt; task = new AsyncTask&lt;Void, Void, String&gt;() {
                   String errorMessage = null;
  
                   @Override
                   protected String doInBackground(Void... params) {
                       String token = null;
                       try {
                           String scope = "oauth2:profile email";
                           token = GoogleAuthUtil.getToken(MainActivity.this, emailAddres, scope);
                       } catch (IOException transientEx) {
  
                           errorMessage = "Network error: " + transientEx.getMessage();
                       } catch (UserRecoverableAuthException e) {
                           Intent recover = e.getIntent();
                           startActivityForResult(recover, MainActivity.REQUEST_CODE_GOOGLE_LOGIN);
                       } catch (GoogleAuthException authEx) {
                           errorMessage = "Error authenticating with Google: " + authEx.getMessage();
                       }
                       return token;
                   }
  </code></pre>
  
  <p>I've added JSON config file in app/ directory and added dependencies:</p>
  
  <pre><code>     buildscript {
  repositories {
      jcenter()
  }
  
  dependencies {
      classpath 'com.google.gms:google-services:1.5.0-beta2'
  }
       }
  
  
       dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:appcompat-v7:23.1.+'
  compile 'com.firebase:firebase-client-android:2.3.0+'
  
  /* For Google Play Services */
  compile 'com.google.android.gms:play-services-safetynet:8.3.0'
  compile 'com.google.android.gms:play-services-auth:8.3.0'
  compile 'com.google.android.gms:play-services:8.3.0'
  
  compile('com.afollestad.material-dialogs:core:0.8.3.0@aar') {
      transitive = true
  }
  
  /* Firebase UI */
  compile 'com.firebaseui:firebase-ui:0.2.2'
  
  compile 'com.android.support:cardview-v7:23.1.+'
  compile 'com.android.support:recyclerview-v7:23.1.+'
  compile 'com.android.support:design:23.1.+'
  
  
       }
       apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>I am looking for solution hours already...
  Please help!!</p>