Developer error Android studio

0

When you want to log in with Gmail Firebase in the app, you get this error

From what I have read one of the failures is because the signed the apk with another key SHA-1 other than the one I have in firebase but when I try to add the new one in Firebase I stay a while thinking and then not appears.

Any way to fix the error?

    
asked by lujan 20.08.2018 в 20:02
source

1 answer

0

This error is related as we mentioned above with the signature of your app, there are two types of SHA1, the debug and the release, the debug you can find it in the following way

You go to the tab on the top right and clickas gradle - tu proyecto - tasks - signingReport

Then below you will see your SHA1 (this is debug, right image)

Now, in your build.gradle it tells you the package you should sign in with Firebase Console .

To get the production SHA1 or Release, open the terminal in the android studio and do the following, you position yourself in the bin folder that comes with the SDK, you usually find it in the javac folder (usually in C:\Program Files\Java\jdk1.6.0_14\bin ). Then you write the following

keytool -list -v -keystore {keystore_name} -alias {alias_name}

for example

keytool -list -v -keystore C:\Usuario\tu_usuario\Desktop\prueba.jks -alias prueba

SHA1 production should be what you would use when your app is in the PlayStore

    
answered by 23.08.2018 в 17:32