编译'com.android.support:multidex:1.0.1'发生错误:所有com android支持库必须使用完全相同的版本 [英] compile 'com.android.support:multidex:1.0.1' happened wrong: all com android support libraries must use the exact same version

查看:826
本文介绍了编译'com.android.support:multidex:1.0.1'发生错误:所有com android支持库必须使用完全相同的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我将Android工作室升级到2.3,并将gradle更新为3.4.1。但是当我建立我的项目时,发生了一个错误:
这是错误
因此,我添加了buildToolsVersion'25.0.0'



我的项目可以构建成功,但发生了另一个错误。我无法解决它。我希望得到一些帮助。谢谢!
这是错误



当我添加编译'com.prolificinteractive:material-calendarview:1.4.2'时,会发生此错误。
这是我的androidDependencies

解决方案

这可能是Android Studio 2.3的一个问题。有一个新的检查,检查 com.android.support 的所有依赖关系是否使用相同的版本号。但是, multidex 没有匹配的版本号。您可以通过旁边的红色灯泡图标禁用检查作为现在的解决方案。

Today, I update my Android studio to 2.3, and I update gradle to 3.4.1. But when I build my project, an error occurred: This is the error So I add " buildToolsVersion '25.0.0' "

My project can build successful, but another error occurred. I can't solve it. I hope to get some help. Thank you! This is the error

When I add compile 'com.prolificinteractive:material-calendarview:1.4.2', this error will occur. This is my androidDependencies

解决方案

This is probably an issue with Android Studio 2.3. There's a new inspection that checks if all dependencies of com.android.support use the same version number. However, multidex doesn't have a matching version number. You can disable the inspection via the red light bulb icon next to it as a work-around for now

这篇关于编译'com.android.support:multidex:1.0.1'发生错误:所有com android支持库必须使用完全相同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆