on-internet
← Community

com.google.android.gms.common.api.ApiException: 10:

Stack Overflow ·

I want do Google SignIn using below gradle. implementation 'com.google.android.gms:play-services-auth:15.0.0' Below code for initialisation : private fun initGooglePlus() { val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.server_client_id)) .requestEmail() .build() mGoogleSignInClient = GoogleSignIn.getClient(this.activity!!, gso) } I am calling below code in my button click private fun googlePlusLogin() { val signInIntent = mGoogleSignInClient!!.signInIntent startActivityForResult(signInIntent, SIGN_IN_CODE) } OnActivityForResult ov

Comments

Sign in or sign up to comment and upvote.

No comments yet.