Integration of google Auth in your project. Get a configuration file
suggest changeFirst get the configuration file for Sign-in from the Google Sign-In start page.
Click Get a configuration file.
- Enter App name And package name and click on choose and configure services
- provide SHA1 Enable google SIGNIN and generate configuration files
Download google-services.json and place it in the app/ folder of your project.
- Add the classpath inside
buildscript { dependencies { } }in the project-levelbuild.gradle:
classpath 'com.google.gms:google-services:3.0.0'
- Add the plugin at the bottom of the app-level
build.gradle:
apply plugin: 'com.google.gms.google-services'
- Add this dependency to the app module:
dependencies { compile 'com.google.android.gms:play-services-auth:9.8.0' }
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents