Guide: How to Convert your .aab file into .apk

Noroup

  • *
  • Posts: 138
Recently, Stencyl released an update which compiles games  into .aab files instead of the usual .apk because Google Play requires .aab android bundle file be submitted rather than .apk in order to release your app.

This is a guide on how to convert your .aab file into a .apk for manual testing, or creating download links for testers.

1. Make a folder, anywhere, titled "ConvertAPK"

2. Publish your game to android, it will be published as a .aab. Place the .aab in the "ConvertAPK" folder you have created.

3.. You must download Bundletool from github.
https://github.com/google/bundletool/releases

4. Place bundletool.jar in the created folder, ConvertAPK

5. https://imgur.com/VeQNeZt
Go to your folder, ConvertAPK, and shift + right click and click Open Command Window here (This might require a separate tutorial to open the command window here).

6. In the command window, type this and replace the bolded text.
java -jar "FILE LOCATION OF BUNDLETOOL.JAR" build-apks --bundle="FILE LOCATION FOR .AAB FILE" --output="FILE LOCATION OF WHERE TO PUBLISH .APKS" --ks="FILE LOCATION OF KEYSTORE" --ks-key-alias=YOURKEYSTOREALIAS

7. The command window will then ask for your keystore password. Your typed password won't show up on the cmd prompt. Type it in and press ENTER.

8.  The command prompt will then publish a .apks file to wherever destination you choose. Rename it to a .zip.

9. Extract the .zip somewhere, and your .apk file will be in the standalones folder.

10. Fin.

« Last Edit: January 27, 2020, 12:03:44 am by Noroup »