AndroidGeek
AndroidGeek

Reputation: 409

Android Studio is not recognizing Keystore alias while generating signed apk

I am getting this error everytime I tried to generate my signed apk through Android Studio:

No key with alias 'Operator_keystore' found in keystore PATH/OrderOperator_keystore

Previously I successfully submitted builts with the same keystore. The problem arises when I move my whole project folder to another folder, also I invalidated the cache of android studio.

I am signing apk like this enter image description here

Any help would be appreciated.

Upvotes: 0

Views: 1523

Answers (3)

axar
axar

Reputation: 539

you can use Gradle into signingReport and generate a hash key or sha1 key and also refresh the app level build.gradle file after submitting the form for keystore

Upvotes: 0

Pierre
Pierre

Reputation: 17397

Open a terminal and run the following command:

keytool -list -v -keystore </path/to/your/keystore.jks>

After you enter the keystore password, it will display the list of certificates stored in that keystore, including the alias names, e.g.

Keystore type: jks
Keystore provider: SUN

Your keystore contains 1 entry

Alias name: androiddebugkey
Creation date: Nov 19, 2018
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
...

Look at the alias name displayed, and compare that with the value you put in the Key alias field in that Studio window.

Upvotes: 1

Jay
Jay

Reputation: 41

Make sure you key store path is correct with the location of the new folder and also make sure you're entering the correct password for both key store and alias. If that doesn't work try changing keystore PATH/OrderOperator_keystore To keystore PATH/

There shouldn't be any space between keystone Path also

Upvotes: 0

Related Questions