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 是不可见的!

更多相关文章

  1. textAppearance 解答,android系统主题样式
  2. API 23 view.ViewGroup——属性分析
  3. android gradle编译 多个flavor中加载不同的android library的fl
  4. Android(安卓)弱引用
  5. Android(安卓)ROM研究---如何在ubuntu下下载姜饼(Gingerbread)源
  6. ANDROID Porting系列一、ANDROID编译系统
  7. 【Android(安卓)NDK 开发】Ubuntu 函数库交叉编译 ( Android(安
  8. Android内核源码交叉编译
  9. Android(安卓)源代码结构

随机推荐

  1. 【PostgreSQL 架构】PostgreSQL 11和即时
  2. 详解thinkphp+redis+队列的实现代码
  3. Linux高产出自动挖Chia币教程
  4. angular 组件传值 父子组件引用
  5. 【php基础入门】PHP中常用的数组操作使用
  6. 1. 变量的类型转换方式 2. 变量值传递与
  7. 一次 Logback 发现的隐患
  8. AOM:光提取助力实现超低压高效白光量子点
  9. AFM:基于硫化锑纳米线的宽光谱偏振光探测
  10. AEnM:原位电化学AFM揭示H2O介导的锂氧界面