I know this is a common question and usually the solution is to generate a separate key for release. I\'ve done it several times and my API key in developers console contain
I did a lot of things to fix these but any solution not fix my problem to fix these issue I did these things
You should go to use the path of bin folder of java from c drive because keystore tool is inside bin folder so suppose your file is like C:\Program Files\Java\jdk1.8.0_11\bin so you should follow this path to your android studio terminal change the path to C:\Program Files\Java\jdk1.8.0_11\bin and then type this command:
keytool -list -v -keystore "/Users/NT/Desktop/generalkey.jks"(adress of your keystore file)
Now by doing these you will get the sha key copy that key