如何从 Gradle Dependency 中找到库的版本?安卓工作室 [英] How to find the version of library from Gradle Dependency? Android Studio

查看:26
本文介绍了如何从 Gradle Dependency 中找到库的版本?安卓工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的 Gradle 文件在依赖项的版本号中使用+"运算符提及依赖项时,如何找到正在使用的库版本?

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 dependency?

我在 app 模块下的 build.gradle 是这样写的:

My build.gradle under app module reads like so:

dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.google.android.gms:play-services:5.+'
}

这里使用的播放服务库的版本是什么?

What is the version of the play-services library that is being used here?

推荐答案

在你项目的.idea文件夹下查看

在左侧的 Project Pane 中,浏览到 .idea/libraries

Look under .idea folder of your project

In the Project Pane on the left, browse to .idea/libraries

您的项目中提到的所有库依赖项,每个依赖项都有自己的 xml 文件.您可以看到 xml 文件标题中包含的版本号.xml 本身有库文件路径.

All the library dependencies that your project has have been mentioned, with each one getting its own xml file. You can see the version number included in the xml file title. The xml itself has the library file path.

请参阅此处的步骤:https://stackoverflow.com/a/25236208/1311745

这篇关于如何从 Gradle Dependency 中找到库的版本?安卓工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆