相关配置更改:
1、app:build gradle中: compile 要用 implementation 或 api 替换
testCompile 要用 testImplementation 或 testApi 替换
androidTestCompile 要用 androidTestImplementation 或 androidTestApi 替换
2、 library:build gradle中
1. api替换compile:
3、. 最新官方推荐 implementation 用来代替 compile, implementation 会使AS编译速度更快
1、 implementation声明的依赖包只限于模块内部使用,不允许其他模块使用。
2、 api声明的依赖包时, 模块依赖于此模块,此模块使用api声明的依赖包是可以被其他模块使用