Android studio 依赖包常用技巧

查看第三方包依赖

参考文章
https://blog.csdn.net/wfeii/article/details/80097413

Terminal窗口下输入gradlew app:dependencies --configuration releaseCompileClasspath

app可替换为相应的module名

依赖包结构截图

剔除重复的依赖库

exclude group: 'com.android.support',module:'recyclerview-v7'

group:'依赖库名',module:'具体哪个模块'

实例参考

如何使用本地aar

步骤如下:
1. 在相应的module的build.gradle中加入以下配置

repositories {    
    flatDir {        
        dirs 'libs'   // aar目录
      }
}

2. 将aar文件拷贝到app/libs目录下
3. 在dependencies中加入aar引用

implementation(name: 'zbar-release', ext: 'aar')

你可能感兴趣的:(Android studio 依赖包常用技巧)