困扰了我好久的问题,刚刚在一篇博客中得到解决方法
在项目的build.gradle中添加如下代码:
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.1.1'
}
}
}
}
详情参考: http://blog.csdn.net/fff2666/article/details/68062717