Here is simple and shortcut method to get your SHA1 from android. We need SHA1 to verify on some application like Google and Facebook need your SHA1 to generate or verify your application. Follow below step to get your key. follow bellow simple step as shown in images
Look for Gradle in left side off screen and click on it
After this click on app link and inside app go to Tasks -> android -> signingReport click on it now after this console will open and you have your SHA1 and MD5 Key.
Hope this will help you 🙂