How to execute a gradle task after android dexDebug or dexRelease task
问题 The bounty expires in 9 hours . Answers to this question are eligible for a +50 reputation bounty. Arjun T Raj is looking for an up-to-date answer to this question. I want to run a Gradle task to execute some shell scripts after dexRelease or dexDebug task during the android build. I have tried the below approach task taskAfterDex(type:Exec) { workingDir '.' executable 'sh' args "-c", "source scriptskAfterDex.sh" ignoreExitValue true doLast { println "taskAfterDex completed" } } tasks