Skip to content

Commit 5e8062d

Browse files
Update android export page for AAB requirement (#9637)
* Update android export page for AAB requirement --------- Co-authored-by: Max Hilbrunner <[email protected]>
1 parent 0a6c134 commit 5e8062d

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

tutorials/export/exporting_for_android.rst

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,19 @@ This way, your application will look great on all Android devices and versions.
121121
Exporting for Google Play Store
122122
-------------------------------
123123

124-
Uploading an APK to Google's Play Store requires you to sign using a non-debug
125-
keystore file; such file can be generated like this:
124+
All new apps uploaded to Google Play after August 2021 must be an AAB (Android App Bundle)
125+
file.
126+
127+
Uploading an AAB or APK to Google's Play Store requires you to sign using a non-debug
128+
keystore file; such a file can be generated like this:
126129

127130
.. code-block:: shell
128131
129132
keytool -v -genkey -keystore mygame.keystore -alias mygame -keyalg RSA -validity 10000
130133
131134
This keystore and key are used to verify your developer identity, remember the password and keep it in a safe place!
132135
It is suggested to use only upper and lowercase letters and numbers. Special characters may cause errors.
133-
Use Google's Android Developer guides to learn more about `APK signing <https://developer.android.com/studio/publish/app-signing>`__.
136+
Use Google's Android Developer guides to learn more about `app signing <https://developer.android.com/studio/publish/app-signing>`__.
134137

135138
Now fill in the following forms in your Android Export Presets:
136139

@@ -144,22 +147,17 @@ Don't forget to uncheck the **Export With Debug** checkbox while exporting.
144147

145148
.. image:: img/export-with-debug-button.png
146149

147-
Optimizing the APK size
148-
-----------------------
149-
150-
By default, the APK will contain native libraries for both ARMv7 and ARMv8
151-
architectures. This increases its size significantly. To create a smaller APK,
152-
uncheck either **Armeabi-v 7a** or **Arm 64 -v 8a** in your project's Android
153-
export preset. This will create an APK that only contains a library for
154-
a single architecture. Note that applications targeting ARMv7 can also run on
155-
ARMv8 devices, but the opposite is not true.
156-
157-
Since August 2019, Google Play requires all applications to be available in
158-
64-bit form. This means you cannot upload an APK that contains *just* an ARMv7
159-
library. To solve this, you can upload several APKs to Google Play using its
160-
`Multiple APK support <https://developer.android.com/google/play/publishing/multiple-apks>`__.
161-
Each APK should target a single architecture; creating an APK for ARMv7
162-
and ARMv8 is usually sufficient to cover most devices in use today.
150+
Optimizing the file size
151+
------------------------
152+
153+
If you're working with APKs and not AABs, by default, the APK will contain native
154+
libraries for both ARMv7 and ARMv8 architectures. This increases its size significantly.
155+
To create a smaller file, uncheck either **Armeabi-v 7a** or **Arm 64 -v 8a** in
156+
your project's Android export preset. This will create an APK that only contains
157+
a library for a single architecture. Note that applications targeting ARMv7 can
158+
also run on ARMv8 devices, but the opposite is not true. The reason you don't do
159+
this to save space with AABs is that Google automatically splits up the AAB on their
160+
backend, so the user only downloads what they need.
163161

164162
You can optimize the size further by compiling an Android export template with
165163
only the features you need. See :ref:`doc_optimizing_for_size` for more

0 commit comments

Comments
 (0)