Android applications integrate with Google logon and androidgoogle
Google login API: https://developers.google.com/identity/sign-in/android/
1. Register and log on to the google website
Https://accounts.google.com/
2. Go to the google developer platform to create an application
Https://developers.google.com/mobile/add? Platform = android & cntapi = signin & cntapp = Default % 20 Demo % 20App & cntpkg = com. google. samples. quickstart. signin & cnturl = https: % 2F % 2Fdevelopers.google.com % 2 Fidentity % 2Fsign-in % 2 Fandroid % 2 Fstart % 3 Fconfigured % 3 Dtrue & cntlbl = Continue % 20 with % 20Try % 20Sign-In
3. Enter the response information on the developer platform, including the Application name, package name, and SHA-1 value of the signature.
Figure 1
Figure 2
Figure 3
4. Add google service 4.1 to the project and download google service from SDK Manager.
4.2 Add in build. gradle under the project directory
Classpath 'com. google. gms: google-services: 2.1.0-alpha4'
View Latest Version: https://jcenter.bintray.com/com/google/gms/google-services/
4.3 add
Compile 'com. google. android. gms: play-services-auth: 8.4.0'