When using older version then gradle 2.14.1 then below statement compiled and
run successfully but after updating with gradle 2.14.1, its not working.
code:
assembleRelease.dependsOn 'increaseVersionCodeAndName'
Thanks,
Devang
You may change your task increaseVersionCodeAndName
that it will depend on release like:
task increaseVersionCodeAndName() << {
//your code
dependsOn 'assembleRelease'
}
Instead of calling gradle assemble
call your own gradle task increaseVersionCodeAndName
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