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?

aabをapkに変換する方法

Posted at

はじめに

aabをapkに変換する方法を調べたので、変換手順をメモとして残しておきます。

bundletool

aabをapkに変換するにはbundletoolが必要になります。

インストール

以下を参照
https://developer.android.com/studio/command-line/bundletool?hl=ja

macでhomebrewを使っている場合以下のコマンドでインストール可能
brew install bundletool

使い方

  • 作業用のディレクトリを作成する(仮に、~/workとする)
  • 上記のディレクトリに aab ファイルと、aabファイルをビルドする際に使用した.jksファイルを配置する
  • ターミナルで作業用のディレクトリに移動する(cd ~/work)
  • 以下のコマンドを実行
    ファイル名、キーのパス、パスワードなどは適宜変更してください。key.propetiesファイルに書いてあります
bundletool build-apks --bundle=app-release.aab \
--output=app.apks \
--ks=key.jks \
--ks-pass=pass:XXXXX \
--ks-key-alias=key \
--key-pass=pass:XXXX
  • Android端末を PC に繋ぎ下記のコマンドを実行すればインストールできる
bundletool install-apks --apks=app.apks
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?