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 gradle.properties like this

but i discover the gradle.properties is invalid

project.hasProperty(‘cdvBuildMultipleApks’) is null ?

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

Hi

Check if instead of gradle.properties you have a project.properties file and put
cdvBuildMultipleApks=false there instead?

Or

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