简体   繁体   中英

Run a gradle command from build.gradle

To run a part of my gradle script, I normally open the command line and type

gradle swagger

how can I make Android Studio automatically run this command when it syncs the gradle file?

You can do it like this.

在此处输入图片说明

This is the gradle tasks view that android studio provides.

Menu Bar -> View -> Tool Windows -> Gradle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM