android - 编译 'com.android.support:multidex:1.0.1' 发生错误 : all com android support libraries must use the exact same version

标签 android android-studio gradle

今天,我将我的 Android studio 更新到 2.3,并将 gradle 更新到 3.4.1。但是当我构建我的项目时,出现了一个错误: This is the error 所以我添加了“buildToolsVersion '25.0.0'”

我的项目可以构建成功,但是出现另一个错误。我无法解决它。我希望得到一些帮助。谢谢! This is the error

当我添加compile 'com.prolificinteractive:material-calendarview:1.4.2'时,会出现这个错误。 This is my androidDependencies

最佳答案

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

关于android - 编译 'com.android.support:multidex:1.0.1' 发生错误 : all com android support libraries must use the exact same version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42622333/

相关文章:

Android Annotations/Gradle/Android Studio 构建问题

gradle - 使用 gradle 任务删除文件

gradle - 升级到 Gradle 2.2 后不再在扩展上调用 methodMissing

android - android中的内部存储

android - 为什么我不能使用 `MutableState` 作为属性委托(delegate)?

android - 如何在 Adapter.java 上使用 getResources()

grails - 如何将 mongodb 和/或 postgresql-extension 插件添加到 Grails 3.0.0+ 中?

android - 实现社交登录和应用内登录

android - 后退按钮被运行在所有其他应用程序之上的应用程序阻止

android - Google Play 商店显示有关已签名 apk 的错误