Android(安卓)com.android.support 版本不一致
16lz
2021-12-04
Android 引入的第三方的包出现support版本冲突的问题:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 27.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:exifinterface:27.1.0 Inspection info:There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion).
我们可以这样处理:
// picasso po implementation('com.squareup.picasso:picasso:2.71828') { exclude group: 'com.android.support' }
Android gradle provided、implementation等指令注意点
注意compile是和api对应的,效果相同。
implementation 的区别在于对外可见性,而且可以加快编译速度(原理在于减少不必要的重复编译过程)
A module 依赖 B module,B 依赖 C module。Android Studio 2.X使用compile:A compile BB compile CA module不仅可以引用B module,还可以引用C module的接口和类。Android Studio 3.X使用implementation:A implementation BB implementation CA module只可以引用B module,不可以引用C module。C 对 A 是不可见的!
更多相关文章
- textAppearance 解答,android系统主题样式
- API 23 view.ViewGroup——属性分析
- android gradle编译 多个flavor中加载不同的android library的fl
- Android(安卓)弱引用
- Android(安卓)ROM研究---如何在ubuntu下下载姜饼(Gingerbread)源
- ANDROID Porting系列一、ANDROID编译系统
- 【Android(安卓)NDK 开发】Ubuntu 函数库交叉编译 ( Android(安
- Android内核源码交叉编译
- Android(安卓)源代码结构