I\'m trying to publish my app to Google playstore, and I can not figure out how to sign the app use the upload key, as stated in https://developer.android.com/studio/publish
Steps to generate signed apk which can be uploaded on playstore
1) First go to build variant and select Release ,by default the debug is selected.
2) Then go to generate Build menu and select Generate signed apk .here you will find option to select the existing keystore or create a new keystore
3) Fill up the required details such as path to keystore file .Keystore password , key alias and password
4) and then you will get build-release apk of the android app that you want to publish on playstore
Now go to google developer console and in Manage release menu select option to create release and upload the apk