How to config Gradle Properties - cdvBuildMultipleApks?


some times I want build a Apk with multiple CPU support or reverse

codova’ docs says:

These properties can be set to customize the build:

    cdvBuildMultipleApks (default: false)

    If this is set, then multiple APK files will be generated: One per native platform supported by library projects (x86, ARM, etc). This can be important if your project uses large native libraries, which can drastically increase the size of the generated APK.

    If not set, then a single APK will be generated which can be used on all devices.

cordova doc

so i config like this

but i discover the is invalid

project.hasProperty(‘cdvBuildMultipleApks’) is null ?

why that ? and how to config the cdvBuildMultipleApks=false?



Check if instead of you have a file and put
cdvBuildMultipleApks=false there instead?


Make a file build-extras.gradle and put it into platforms/android/. Add line cdvBuildMultipleApks=false into build-extras.gradle.

Now run ionic run android ,it will create combined single build android-debug.apk.

as mentioned here:

combine APK files