Gradle equivalent of 'mvn clean package'

In The Pull Request tips article (, it is mentioned:

Tests passing? Run “mvn clean package” before committing. Running this maven command not only ensures that all tests are passing, but also formats all your changes according to our conventions.

But as I work in Android Studio with gradle, can you suggest the command I must run before commiting?


@vansha10 may be you can try out mvn clean install

check out this