方法一:大多数第三方库都上传至jcenter仓库,因此只需在浏览器里访问https://jcenter.bintray.com/+第三方库路径,下面以okhttp3举例说明。
1、在gradle中找到okhttp3路径"com.squareup.okhttp3:okhttp:3.10.0"
2、将路径第一个:前的文本复制并将.替换为/得到最终结果为com/squareup/okhttp3
3、将步骤2获取的结果拼接在https://jcenter.bintray.com/后进行访问即可
方法二:
1、查看constraint-layout的版本信息:
访问https://dl.google.com/dl/android/maven2/com/android/support/constraint/group-index.xml即可
方法三:上传至jitpack库查询方法,以'com.github.Kennyc1012:MultiStateView:2.1'为例
访问https://jitpack.io/输入MultiStateView即可
方法四:使用Android Studio进行查询,几乎能查出所有库版本信息。
1、File->Project Structure->Dependencies->选择任意module->点Declared Dependencies里的“+”->Library Dependency
2、输入要查询库名称,点击Search,以constraint-layout为例