6
5

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の署名付きapk(debug用)を作成する方法

Last updated at Posted at 2019-03-28

環境

  • macOS Mojave
  • Android Studio 3.3.2

署名付きapk(debug用)作成手順

  1. debug.keystore を作る。
$ keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
> キーストアのパスワードを入力してください: android
> 新規パスワードを再入力してください: android
...
(キーストアのパスワードと同じ場合はRETURNを押してください): RETURN押下

2 . Android Studio > Build > Generate Signed Bundle / APK
3 . チェックボックスで「APK」を選択して「Next」
4 . 以下の情報を入力して、「Next」

  • key store path: 1 で作成した debug.keystore の path
  • Key store password: android
  • key alias: androiddebugkey
  • key password: android

5 . 以下の情報を入力して、「Finish」

  • BuildType: devDebug
  • Signature Versions: V1 と V2 にチェック

6 . 署名済みの apk が ./dev/debug/app-dev-debug.apk に作成される

参考

6
5
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
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?