Integrate Google Sign-In to Android app

PRABEESH R K · 148K views · 2017 · 32:44

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed when setting up Google Sign-In, usually while asking about build errors, Gradle dependencies or google-services.json problems that came up along the way.

Recommended by 0 people across 0 different months, 2017 to 2019.

What it is

A 32-minute screen-recorded tutorial from 2017 showing how to add Google Sign-In to an Android app in Android Studio. It walks through enabling the login in an Android project, presented by Prabeesh R K.

What people said

Cites Mayank Thakur · 2017-08 · Stack Overflow · on “Error: execution failed for task '.app:buildInfoDebugLoader'”

I'm developing a project in which i need to implement a google sign in . I followed this [this video] tutorial how to do that, and now i get following error: I tried: I tried looking in the build-info.xml file, and it was blank, along with it there was a tempbuild-info.xml file which contained some xml code. I tried to put that code from the temp into the original but that didn't work either. i thought it was a problem in the gradle files, but the gradle files sync perfectly fine. i'm pretty sure at this point that the problem is in the XML files, because the xml file that contains the code for the googleSignInButton doesn't have a preview when i switch to the design view. this is the case with a

Cites Mayank Thakur · 2017-08 · Stack Overflow · on “XML files contain code, but preview is blank”

so i have a project where im implementing a google sign in, i followed this [this video] tutorial on how to do that, but when i did, all my XML files appear blank. i made changes to the original MainActivity.java and the activity_main.xml file. i woudl think that only the activity_main.xml would be affected, but all of my XML files appear blank. when i try to run the app, i get "Error:Content is not allowed in prolog. " and "Execution failed for task '.app:builderInfoDebugLoader'" this is my activity main where i implement the google sign in: package com.example.mayankthakur.personalprojecttrial2; import android.content.Context; import android.content.Intent; import android.content.SharedPreferen

Cites LearnerDhruv · 2018-07 · Stack Overflow · on “Do we need Gradle Dependencies in GoogleSignIn in Android or is it a Deprecated approach?”

I am new to Android, and I was trying to Add GoogleSignin in my blank app. I am following this tutorial from YouTube: [this video] , which says to add Gradle dependencies as shown in "Google's official documentation". But I don't see any such dependencies given in the official documentation. I feel I am stuck in the process. Is it that the documents shown in the video are deprecated and now we don't need to add Gradle dependencies for Google SignIn? I have performed the following steps: 1) Created a project in Android Studio 2) Added internet permission in manifest 3) Created a Project in Google Developer Console 4) Generated the SHA Key and added to the official documentation form 5) Generated t

Cites user2288580 · 2018-11 · Stack Overflow · on “Logout for GoogleApiClient in Android application”

I've modified a code snippet from the android docs. This is a complete code snippet that logs in and out; displaying the user name, email and profile image. This code snippet is well tested. The origonal doc can be found here: [LINK] See this doc for dependencies. public class MainActivity extends AppCompatActivity implements View.OnClickListener, GoogleApiClient.OnConnectionFailedListener { private ImageView imgUserAvatar; private TextView lblName; private TextView lblEmailID; private SignInButton btnSignIn; private Button btnSignOut; private GoogleSignInOptions gso; private GoogleSignInClient googleSignInClient; private GoogleSignInAccount account; private GoogleApiClient googleApiClient;

Cites ifconfig · 2019-01 · Stack Overflow · on “How to obtain a google-services.json file for Android app from Google Cloud Platform?”

I've been trying to get started on an Android app with Google Sign in as a principal feature, and one of the steps I've encountered in the process of getting the integration working is creating a google-services.json file in the ./app directory, which can apparently somehow be downloaded [LINK] . Google's docs are wholly incomplete, especially for a newbie Android, so I've been learning from a tutorial I found from about a year ago [this video] . I haven't figured out how to get a google-services.json file, especially because the prerequisite page that the above docs link refers to for downloading a google-services.json file instead helps me obtain a credentials.json file. Are these the same thin