Java – How do i create a key store file in android studio


How do i create a key store file in android studio? Its my first time publishing an app for android studio and I dont know what a key store file is and dont know how to use it. How do i make one for android studio instead of eclipse because when i search on google I only get results for making one for eclipse unless its exactly the same with android studio?

When i tried to make a key store and entered a random file for the key store path i got the error:
keytool error: java.lang.Exception: Keystore file exists, but is empty: C:\Users\king__000\Documents\KeyStore

Best Solution

Keystore is a binary file which can be used to sign an application that you have developed. It is private key that you are issuing with the application. Android uses this certificate to identify the author of an app, and the certificate does not need to be signed by a certificate authority.

This link explains how to export an android app with Android studio.

navigate to your location and delete the empty keyfile and then create the new key file. Normally it fails if there is an existing file.