Generate an APK file from an AAB file (Android app bundle) Ask Question

Generate an APK file from an AAB file (Android app bundle) Ask Question

Is there a way to generate an APK file from an Android Application Bundle (AAB) via Terminal or using Android Studio?

ベストアンサー1

So far nobody has provided the solution to get the APK from an AAB.

This solution will generate a universal binary as an apk.

  1. --mode=universalコマンドに追加しますbundletool(署名されたアプリが必要な場合は、必要に応じて --ks パラメータを使用します)。

     bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks --mode=universal
    
  2. 主なステップ:出力ファイル名を から に変更し.apksます.zip

  3. 解凍して探索

  4. ファイルはuniversal.apkあなたのアプリです

このユニバーサル バイナリはおそらくかなり大きくなりますが、QA 部門に送信したり、Google Play ストア以外の場所にアプリを配布したりするのに最適なソリューションです。

おすすめ記事