Android Development - Google Play Services, Google Login Integration

Filip Petrovic

I followed a couple of videos on youtube including the one from Google Developers, and the guide on google's developer website https://developers.google.com/identity/sign-in/android/start-integrating .

My project-level dependency:

classpath 'com.google.gms:google-services:3.0.0'

My app-level dependency:

compile 'com.google.android.gms:play-services-auth:9.0.0'
apply plugin: 'com.google.gms.google-services'

I've created a web-client and I've inserted the client id as a string into the strings.xml file. I've created an Android client and checked twice that an email and name exist in the consent screen and that the SHA1 hash is correct. I've pasted the .json file into the root of my app. My app has the correct permissions

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

I'm probably forgetting something, but the gist is, isSuccess() is returning false, so I logged the result and the result says

Status{statusCode=DEVELOPER_ERROR, resolution=null}

Any ideas would be great since I've been mirroring everything from the sample app Google provides for the google sign-in project.

Thanks

abielita

You're getting an error Status{statusCode=DEVELOPER_ERROR, resolution=null} maybe because your application is misconfigured. Check your google api configuration. Make sure you have registered your debug and release SHA1 keys in the console.

Based on the walkthrough published in https://developers.google.com/identity/sign-in/android/start:

Probably you created the configuration file using the SHA1 of your "production" token, use the 'androiddebugkey' alias to gather the SHA1 corresponding to the debug version of your app and copy the configuration file to the 'app' directoy, you should have both configuration files (one for debug purposes and another for production environment).

Make sure your package name is the one in your build.gradle, and its not being overriden in a build variant.

Check these threads:

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Google Play Services - Google login yields a network error

分類Dev

Android:LocationManagerとGoogle Play Services

分類Dev

Google Play Services Version for Android Studio

分類Dev

Android Studio 2.2 Google Play Services同期エラー

分類Dev

Open source replacement for Google Play location services on Android

分類Dev

Android: When does Google Play Services status invalid occur?

分類Dev

Fake/mock Google Play Services

分類Dev

Error in using Google Play Services

分類Dev

Google Play Game Services VS Google Drive

分類Dev

Google Play Services Library Error onesignal

分類Dev

Cannot resolve google play services version 15.0.2

分類Dev

Retrieve leaderboard position in Google play game services

分類Dev

How to remove Google Play Services from GenyMotion?

分類Dev

How does NodeAPI in Google Play Services work?

分類Dev

How to specify google play services dependency in maven

分類Dev

com.google.android.gms:play-servicesをgoogle-play-services.jarに置き換えます

分類Dev

Google Play Instant Development SDK Update Fails

分類Dev

Striping down google play services only to google drive related methods

分類Dev

Androidの依存関係にgoogle-play-servicesを追加する

分類Dev

同期エラー:com.google.android.gms:play-services-base:17.2.0

分類Dev

Does codenameone support activity detection which uses CMMotionActivity (IOS) and Google Play Services ActivityRecognition API (android)?

分類Dev

How do I know what the latest version of Google Play Services is for Android Studio?

分類Dev

Android + Firebase: 最小限の Google Play Services を確実に使用する方法

分類Dev

Android Ad Mob Google Play

分類Dev

Google Plus Login failed when uploaded to Google Play

分類Dev

play-services-tasks-license.aar(com.google.android.gms:play-services-tasks-license:11.8.0)が見つかりませんでした

分類Dev

Android Studioエラーライブラリcom.google.android.gms:play-services-measurement-base

分類Dev

How to require updated play services and add "This app won't run unless you update Google Play services"

分類Dev

Google Play Services version 5.2.08 too recent for my device

Related 関連記事

  1. 1

    Google Play Services - Google login yields a network error

  2. 2

    Android:LocationManagerとGoogle Play Services

  3. 3

    Google Play Services Version for Android Studio

  4. 4

    Android Studio 2.2 Google Play Services同期エラー

  5. 5

    Open source replacement for Google Play location services on Android

  6. 6

    Android: When does Google Play Services status invalid occur?

  7. 7

    Fake/mock Google Play Services

  8. 8

    Error in using Google Play Services

  9. 9

    Google Play Game Services VS Google Drive

  10. 10

    Google Play Services Library Error onesignal

  11. 11

    Cannot resolve google play services version 15.0.2

  12. 12

    Retrieve leaderboard position in Google play game services

  13. 13

    How to remove Google Play Services from GenyMotion?

  14. 14

    How does NodeAPI in Google Play Services work?

  15. 15

    How to specify google play services dependency in maven

  16. 16

    com.google.android.gms:play-servicesをgoogle-play-services.jarに置き換えます

  17. 17

    Google Play Instant Development SDK Update Fails

  18. 18

    Striping down google play services only to google drive related methods

  19. 19

    Androidの依存関係にgoogle-play-servicesを追加する

  20. 20

    同期エラー:com.google.android.gms:play-services-base:17.2.0

  21. 21

    Does codenameone support activity detection which uses CMMotionActivity (IOS) and Google Play Services ActivityRecognition API (android)?

  22. 22

    How do I know what the latest version of Google Play Services is for Android Studio?

  23. 23

    Android + Firebase: 最小限の Google Play Services を確実に使用する方法

  24. 24

    Android Ad Mob Google Play

  25. 25

    Google Plus Login failed when uploaded to Google Play

  26. 26

    play-services-tasks-license.aar(com.google.android.gms:play-services-tasks-license:11.8.0)が見つかりませんでした

  27. 27

    Android Studioエラーライブラリcom.google.android.gms:play-services-measurement-base

  28. 28

    How to require updated play services and add "This app won't run unless you update Google Play services"

  29. 29

    Google Play Services version 5.2.08 too recent for my device

ホットタグ

アーカイブ