How to create .aab file?

362 views
Skip to first unread message

pessoade...@gmail.com

unread,
Mar 11, 2021, 2:04:10 PM3/11/21
to Kivy users support
Olá, a Google Play exigira apenas .aab a partir de agosto de 2021 e o buildozer cria apenas .apk, eu realmente não sei como criar .aab, não achei muitas fontes completas sobre isso, e estou com dificuldade em entender o bundletool, alguém que realmente entende pode me esclarecer detalhadamente como converto um apk do buildozer para aab?

Obrigado, desculpe minha falta de conhecimento... :(

Robert

unread,
Mar 11, 2021, 2:47:51 PM3/11/21
to Kivy users support
I have not tried to figure out the details. I assume we will have to unzip our apk(s) and rebuild with bundletool.

You probably found the same sources a I did:

~/.buildozer/android/platform/android-sdk/platform-tools/systrace/catapult/devil/devil/android/sdk/bundletool.py

When you figure it out please document what you find (or make a script?), I expect this will be important to some people.

Evecimar Silva

unread,
May 7, 2021, 1:42:33 PM5/7/21
to Kivy users support
Ola, boa tarde!
Eu estou gerando o arquivo aab utilizando o andorid studio da seguinte forma:

1 - Abara o projeto android (.buildozer/android/platform/build-arm64-v8a/dists/xautobot__arm64-v8a/) no android studio
2 - Atualize o gradle plugin para uma versão mais atual (eu utilizo  Android gradle Plugin version 4.1.3 e grade version 7.0)
Para editar vá em File -> project structure -> project -> salvar
3 - Vá em Build -> Generate Signed Bundle or apk
4 - Selecione Bundle e siga os passos para fazer a assinatura do Bundle. 

Robert

unread,
May 7, 2021, 10:02:03 PM5/7/21
to Kivy users support
Thank you very much, I will try this very soon.

Robert

unread,
May 8, 2021, 5:38:32 PM5/8/21
to Kivy users support
This is great.

Since I build on a VM I copied <project>/.buildozer/android/platform/build-arm64-v8a/dists/<app_name>__arm64-v8a/
to a desktop that has Android Studio installed.    Then    File->Open   <app_name>__arm64-v8a

Since I was on a different platform Android Studio told me the SDK tools path was wrong, Fix? yes

I had to edit <app_name>__arm64-v8/build.gradle  to change BuildToolsVersion 31.0.0-rc2  to 31.0.0.rc3
Android Studio suggested I update the Grade plugin to 4.2.0
I used Gradle 6.7.1

I took the unsigned .aab path:
Build -> Build Bundles(s)/APK(s) -> Build Bundles(s)
I got 
<app_name>__arm64-v8a/build/outputs/bundle/debug/<app_name>__arm64-v8a-debug.aab

Success!

Do you have any ideas about how to build a .aab containing two architectures?
The difficult seems to me to be that private.mp3 is under src, so not in an architecture specific location, any ideas?
Reply all
Reply to author
Forward
0 new messages