Android run Gradle task after app install

前提是你 提交于 2020-01-14 17:15:41

问题


need help with Gradle tasks. I need to run some "taskX" after an app was installed (after "installDebug" task). I've also tried to make the task like this:

task taskX(type: Exec, dependsOn: 'installDebug') {
     commandLine 'sh', './myScript.sh'
}

but it didn't execute. I actually can do this by Android Studio build configuration, but I also want to do this by Gradle wrapper.

来源:https://stackoverflow.com/questions/53502343/android-run-gradle-task-after-app-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!