Is their some build syntax or something in the Gradle API that I can use to check the Gradle version number?
In Android Studio, go to File > Project Structure. Then select the "project" tab on the left. Your Gradle version will be displayed here.
You can add the --gradle-version X.Y argument to specify which version of Gradle to use. Now you can run any Gradle task in your project using the gradlew shell script or bat file located in your project's root directory.
You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or update your Gradle version using the command line. The preferred way is to use the Gradle Wrapper command line tool, which updates the gradlew scripts.
gradle.gradleVersion
will return the version number, as a String.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With