Before signing APK, Google Login was working fine. After signing APK, it's not working, always failure.
For that, are there any proguard settings that I have to do?
My SHA1 and all credentials are fine but still not working how to solve?
FireBase: 1.Project over view --> project settings(setting icon right side) 2.Click on the Project settings then add your fingerPrint(SHA 1 Key which you had copied from Google live play store account).
Google Api Developer Console: Select your project. Click credentials tab on left side bar. Then select your api Key then click edit icon right side. Then add your SHA1 key. That's all.
Finally i was created new key based on release SHA1, now google login and maps working fine after signed apk , no need to run keytool commands, in android studio takes care of everything. you have to follow steps that it.
Android Studio2.1.1 File->Project Structure->app(Left hand side)
->Signing(on top side)->(Click on green color + button and add your release keystore details) ->Build Types(next to the signing tap) and select release on left hand side then right hand side you will see the some fileds in that choose signing config to release then click ok.
Finally click Gradle tap right hand side, then Project name->project name->Tasks->android->singingReport(click on that) now your debug key and Release key was ready On RUN console check it
That might be because you've added SHA1
of only debug keystore.
Add another SHA1
of production keystore and it will start working.
If you're using Linux of Mac OS, generate SHA1
like this.
keytool -list -v -keystore YOUR_PRODUCTION_KEYSTORE_PATH -alias androidproductionkey -storepass password -keypass password
For windows following should work.
keytool -list -v -keystore "YOUR_PRODUCTION_KEYSTORE_PATH" -alias androidproductionkey -storepass password -keypass password
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With