Create a SHA1 or fingerprint for android studio

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Create a SHA1 or fingerprint for android studio



I created an app in android studio and it has a google sign using firebase auth. Everything goes well when I test it on my phone but when the proj. has been transfered to other PC and also build from other phone using that PC (not mine) the google doesnt run at all. They said its because of the SHA-1 because the SHA-1 changes when transfering PC (I think).



Here is my question. Is there any configuration? or tutorial that will create the google sign in, in config or gradle that no matter where i transfer the file. The sign in will work no matter who will build. A public key config or a config that i will include the app folder.



I hope someone helps me. because the best that i did is register my sha1 and also my co dev. in firebase so it works.





you both would need the same debug keys added to your local key-stores.
– Martin Zeitler
Aug 6 at 14:15





yes i did that. but in my gradle config the debug keys located on the folder where i selected so if i gave the proj. and that pc run it the debug key doesnt find because it is located on my pc. is there any way that i can call that debug key on the app folder so when i gave it theres no need to reconfigure the debug key
– Stygrian Desolator
Aug 6 at 14:40




1 Answer
1



You use SHA-1 of debug key. Debug keys are always different on different computers. So you must generate google-services.json for each of PC for debuging.


debug key


google-services.json



BUT if you use release key for build your APK and use he SHA-1 in firebase console then it will work regardless of the computer.


release key





i always include the json file in the app. so you mean i will get the pc's sha1 and include to the proj. where i created the the json file so it will work on that. pc
– Stygrian Desolator
Aug 6 at 14:37





You should create release key and use it in different PCs because you can't use one debug key for several PCs. Debug key is unique for each PC
– Stanislav Tkach
Aug 6 at 14:44






i hope you can guide me on that. i will not use any debug key and when i build the apk to my phone it will use the realese key. how can i do that?
– Stygrian Desolator
Aug 6 at 14:46





Short way But I recommend to read this Official instruction
– Stanislav Tkach
Aug 6 at 14:55





within signing v2 enabled, it's a upload key and not a release key... best is to only share the debug key. @StanislavTkach it does not matter if the keys generated by default are different, because one can either copy the debug key-store or just import the debug key into the store, assuming it has a unique alias name.
– Martin Zeitler
Aug 6 at 14:55







By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard