Warm tip: This article is reproduced from serverfault.com, please click

No key with alias found in keystore

发布于 2016-10-17 07:29:52

Our android project consists of mobile and wear app ( wear app is under development) and we are trying to release the mobile app. When we try to generate signed apk we get this follow message :

Error:Execution failed for task ':wear:packageRelease'.
> com.android.ide.common.signing.KeytoolException: Failed to read key
toyanathpatro from store "/home/adventure/toyanath_patro_key/toyanath_patro_key":
No key with alias 'toyanathpatro' found in keystore /home/adventure/toyanath_patro_key/toyanath_patro_key

As it reads it says failed task for :wear:packageRelease where in reality we are selecting just the mobile while choosing for signing the apk.

Can anyone point out my blunder ? Thanks in advance.

Questioner
erluxman
Viewed
0
erluxman 2016-11-08 12:25:20

The problem seems to be with the wrongly spelled key alias In my case the alias should have been toyanath patro where I wrongly tried to use toyanathpatro So the best suggestion would be :

  1. Don't use space or invisible character in the key alias. as far as possible

2.There is a small selection button (3 horizontal dots) on the right side of key alias editable field, use that button to find the alias which recides in that signature file.

enter image description here