编译 '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

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

问题描述

今天,我将我的 Android Studio 更新到 2.3,并将 gradle 更新到 3.4.1.但是当我构建我的项目时,发生了一个错误:这是错误所以我添加"buildToolsVersion '25.0.0' "

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

当我添加compile 'com.prolificinteractive:material-calendarview:1.4.2'时,就会出现这个错误.这是我的 androidDependencies

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

推荐答案

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

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天全站免登陆