Install Android App Bundle on device

后端 未结 7 1629
囚心锁ツ
囚心锁ツ 2021-01-30 03:43

I built my project using the new Android App Bundle format. With APK files, I can download the APK to my device, open it, and immediately install the app. I downloaded my app as

7条回答
  •  耶瑟儿~
    2021-01-30 04:04

    You cannot install app bundle [NAME].aab directly to android device because it is publishing format, but there is way to extract the required apk from bundle and install it to you device, the process is as follow

    1. Download bundletool from here
    2. run this in your terminal,
    java -jar bundletool.jar build-apks --bundle=bundleapp.aab --output=out_bundle_archive_set.apks
    
    1. Last step will generate a file named as out_bundle_archive_set.apks, just rename it to out_bundle_archive_set.zip and extract the zip file, jump into the folder out_bundle_archive_set > standalones, where you will seee a list of all the apks

    There goes the reference from android developers for bundle tools link

提交回复
热议问题