0
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?

macでkeytoolを実行したがandroid studioのjavaを参照してくれない

Last updated at Posted at 2024-08-14

デバッグ用のフィンガープリントを作成しようと

keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

とすると

The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

というエラーが発生してしまいました。

こちらを参考にシンボリックファイルを作成してあげれば通常通りkeytoolで実行できるようですが、手っ取り早くkeytoolのフルパスを指定して実行してあげました。

/Applications/Android\ Studio.app/Contents/jbr/Contents/Home/bin/keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

ちなkeystoreのデフォルトのパスワードは「android」らしい

0
0
0

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
0
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?