install gradle android studio code example
Example 1: how to upgrade gradle version in linux
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install gradle
Example 2: gradle version
$ gradle -v
------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------
Example 3: why we use gradle in android
uses Gradle, an advanced build toolkit, to automate and manage the build process, while allowing you to define flexible custom build configurations. Each build configuration can define its own set of code and resources, while reusing the parts common to all versions of your app.