[英]Android: how to set build.gradle file to run a plugin task automatically after sync
In our project we imported a plugin to check licenses documentary automatically. 在我们的项目中,我们导入了一个插件来自动检查许可证纪录片。 We need to execute that plugin task manually or set Android studio to do that check. 我们需要手动执行该插件任务或设置Android studio来执行该检查。
We want to do that task automatically after sync. 我们希望在同步后自动执行该任务。 Is it possible to set build.gradle file to do that? 是否可以设置build.gradle文件来做到这一点? And if the check failed, it would show build failed and print out the details like we execute that task manually. 如果检查失败,它将显示构建失败并打印出详细信息,就像我们手动执行该任务一样。
Thank you very much. 非常感谢你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.