这几天为这个问题折腾了半天
- Click on Build > Generate Signed APK.
- You will get a message box, just click OK.
- Now there will be another window just copy Key Store Path.
- Now open a command prompt and go to C:\Program Files\Java\jdk1.6.0_39\bin> (or any installed jdk version).
- Type keytool -list -v -keystore and then paste your Key Store Path (Eg. C:\Program Files\Java\jdk1.6.0_39\bin>keytool -list -v -keystore "E:\My Projects \Android\android studio\signed apks\Hello World\HelloWorld.jks").
- Now it will Ask Key Stroke Password, provide yours and press Enter to get your SHA1 and MD5 Certificate keys.