Android冲突一般是com.android.support不一致和第三方库的冲突居多,常见解决方法有以下两种

1.统一版本号,在app的build.gradle

```

android {

configurations.all {

resolutionStrategy.eachDependency { DependencyResolveDetails details ->

def requested = details.requested

if (requested.group =='com.android.support') {

if (!requested.name.startsWith("multidex")) {

details.useVersion'27.0.1'

            }

}

}

}

}

```

意思是除了multidex之外com.android.support的包版本都统一设置成27.0.1

2.一般设置统一包版本之后,一般是第三方包冲突,还有studio3.0的问题

首先在Terminal运行(提前设置一下gradle环境)

gradle -q dependencies app:dependencies --configuration compile

查看日志阐述的问题能逐个找到答案比如:

google()低版本不兼容问题,改成

maven { url'https://maven.google.com'}

注意:第三方库多的话,建议一个个查问题,不要把全部不兼容高版本的第三方库导入进去,如果一直报奇怪的错误,先删掉app里.build再同步试下,希望能帮助到大家

更多相关文章

  1. mybatisplus的坑 insert标签insert into select无参数问题的解决
  2. Android(安卓)获取包名,版本信息
  3. Android各个版本API的区别
  4. Android(安卓)SDK Manager无法下载包的问题
  5. Android(安卓)多行跑马灯 解决焦点抢占
  6. Android(安卓)4.0 HttpUrlConnection的getInputStream()方法总是
  7. 2011.08.15(2)——— android audioManager解决MediaPlayer AudioT
  8. android中The connection to adb is down .. You must restart a
  9. mac 下启动Android(安卓)Studio 时出现 Android(安卓)Studio was

随机推荐

  1. 分别在Linux和Android中用C语言写系统日
  2. 对android里布局文件当中的TextView对象
  3. Android(安卓)Studio入门体验
  4. android下的MVP架构
  5. Android之Adapter用法总结
  6. 深入解析Android关机
  7. Android中利用GridView实现水平和垂直均
  8. Android初学者学习之Android(安卓)屏幕适
  9. Android(安卓)Eclipse关联 android API d
  10. android - AsyncTask的使用