You can include or exclude the dependency using a file build-extras.gradle. This file can be added with the file build.gradlein the same place using the before_buildhook action .
Ask you to check the Cordova White Paper for more information on this. Also check out this example , which explains the exclusion of duplicate modules. The same can be expanded to include the module.
: , settings.gradle, build.gradle. , , , settings.gradle, build.gradle, . gradle thread, build.gradle.
.gradle, build.js Android, , .
, .