I've got a single Android project which I need to build many .apk's from. The .apk's differ from each other in only a few ways:
What is the best way to build all these different .apk's automatically?
Thanks!
To generate multiple apks for specific types of abiWrite these block of code in your app level gradle file and click build apk. This block of code will generate apk for x86 and mips. For abi, universalApk is false by default, you need to set it to true to generate Universal Apk.
Multiple APKs is a feature on Google Play that allows developers to upload multiple APKs based on pixel density, locale, ABI, API levels, etc. Android Developers documentation lists many rules that developers need to address before publishing APKs on Google Play.
You definitely don't want to create a separate . apk for each individual platform. The Android docs strongly encourage you bundle everything in one .
App bundles are publishing format, whereas APK (Android application Package) is the packaging format which eventually will be installed on device. Google uses app bundle to generate and serve optimized APKs for each user's device configuration, so they download only the code and resources they need to run your app.
Use Android Maven plugin. It supports android library projects.
Here is an example: https://github.com/jayway/maven-android-plugin-samples/tree/master/libraryprojects
(You will need to create several 'libraryprojects-mainapp' modules)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With