2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Android】MacでSigned Apkを作るときにKey StoreのAliasを忘れてしまったときの対象方法

Last updated at Posted at 2018-12-07

:white_check_mark: conclusion

  • keytoolというコマンドを使って確認する事ができる
  • そのためにはkey storeのパスワードが必要
    - パスワードをわすれてしまったときは[http://maxcamillo.github.io/android-keystore-password-recover/:title]を使う

:pencil2: article

key storeをそのaliasのアンマッチが発生した際に

No key with alias 'alias-name' found in keystore 

というようなエラーが発生します。
そういうときは、 keytoolコマンドを使ってaliasを確認します。

僕の環境ではiTerm2ですが、Android Studioからも「View」 -> 「Tool Windows」 -> 「Terminal」からコマンドを実行する事ができます。
実行するコマンドは以下です。

keytool -list -keystore /your-path-to/name.store

※/your-path-to/name.storeの部分を適宜置き換えください。

そうすると作成日付の前にalias文字列が表示されます。

:paperclip: refs

[http://vancelucas.com/blog/listing-aliases-inside-an-android-keystore-file-with-keytool/:title]

[https://qiita.com/mmusasabi/items/e0dbd1fb01c0410f791a:embed:cite]

[https://cpoint-lab.co.jp/article/201803/【android】リリース版アプリをビルドするときにkey-aliasを/:embed:cite]

[https://code.google.com/archive/p/android-keystore-password-recover/:title]

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?