How to find the version of library from Gradle Dependency? Android Studio

前端 未结 4 619
臣服心动
臣服心动 2021-02-01 14:29

Question:

How do I find the version of libraries that are being used when my Gradle file mentions a dependency using the \'+\' operator in the version number of the dep

4条回答
  •  感动是毒
    2021-02-01 15:15

    You can use gradles' build-in 'dependencyInsight' task to query the resolved version of your dependency:

    gradle dependencyInsight --configuration compile --dependency com.google.android.gms:play-services
    

    If you want to get an overview for all your dependencies in one go, you can do

    gradle dependencies
    

    If you use the gradle wrapper you must use ./gradlew instead of gradle

提交回复
热议问题