How to determine the version of Gradle?

前端 未结 8 1440
旧巷少年郎
旧巷少年郎 2020-12-07 17:17

How can I know which version of Gradle I am using in my Android Studio? Please guide.

I want to make sure I am using Gradle version 2.2.1.

8条回答
  •  误落风尘
    2020-12-07 17:35

    At the root of your project type below in the console:

    gradlew --version
    

    You will have gradle version with other information (as a sample):

    ------------------------------------------------------------          
    Gradle 5.1.1 << Here is the version                                                         
    ------------------------------------------------------------          
    
    Build time:   2019-01-10 23:05:02 UTC                                 
    Revision:     3c9abb645fb83932c44e8610642393ad62116807                
    
    Kotlin DSL:   1.1.1                                                   
    Kotlin:       1.3.11                                                  
    Groovy:       2.5.4                                                   
    Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018  
    JVM:          10.0.2 ("Oracle Corporation" 10.0.2+13)                 
    OS:           Windows 10 10.0 amd64                                   
    

    I think for gradle version it uses gradle/wrapper/gradle-wrapper.properties under the hood.

提交回复
热议问题