Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i create a key store file in android studio?

Tags:

java

android

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

like image 324
Xetron Avatar asked Oct 22 '14 17:10

Xetron


People also ask

How do I create a key store path?

KeyStore path : select a path in your system (Create a path in any drive eg: *F:\AndroidKeys*)give a name to your key(eg:game). save in here with the specific name for your project (F:\AndroidKeys\game. jks). Password**: Give some new password and confirm it(Don't forget).

What is keystore file in Android?

The Android Keystore system lets you store cryptographic keys in a container to make them more difficult to extract from the device. Once keys are in the keystore, you can use them for cryptographic operations, with the key material remaining non-exportable.


1 Answers

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.

like image 99
vembutech Avatar answered Oct 20 '22 17:10

vembutech