Logging in to Google does not work after publishing to the game store with two sha1 keys

I have two build options. Each of them has debug and release types.

i having two googleservice.json for two build failures. Everything works fine except logging in to gmail.

In the local mailbox, mail works fine. But after loading the application in the playstore, gmail login does not work. I am updating two sha1 keys for debugging and release in the firebase console. Get the latest googleservice.json file.

But the problem is with playback in the playback store.

And I have it in my proguard

-keep class com.google.android.gms. ** {*; }

-dontwarn com.google.android.gms. **

And I refer to your whole stack question, but still don't get the answer.

Thanks Arunraj M

+1
source share
2 answers

Add the SHA1 key of my key (.jks file) to the Google Developers Console as part of a registered project.

In Android Studio , on the left side, there is an option for build options in the project view. There I changed each module to release mode (by default it is in debug mode). Then create a signed APK in the usual way and run the application.

Google Signin worked great.

follow this link google sign signed apk not working

and after adding SHA-1 Google Developers Console replace google-services.json

NOTE: there must be only one google json file in the project

+1
source

The problem is that you are using sha1 debugging keys. You must generate the SHA1 release keys.

To generate Release SHA1, first go to the JAVA JRE Bin folder and open the command line there or directly open the command line and go to the JAVA JRE bin folder, for example: C: \ Program Files (x86) \ Java \ jre7 \ Bin>

Then use the command below to create the SHA1 release keys,

 keytool -list -v -keystore <keystore_path> -alias <alias_name> 

Example:

My Keystore Path: D: \ AndroidProjects \ my_app_key_store.jks

My Alias ​​Name: my_app_alias

Now use the command below to create your own keytool path:

 keytool -list -v -keystore D:\AndroidProjects\my_app_key_store.jks -alias my_app_alias 
0
source

Source: https://habr.com/ru/post/1245188/


All Articles