用Kotlin存储的Firebase UI会给出错误
在为firebase-ui-storage添加依赖项时出现错误。
我为Kotlin创建了应用程序
build.gradle – 之前:
compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:design:25.3.1' compile 'com.google.firebase:firebase-storage:10.2.6' compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
添加后:
compile 'com.firebaseui:firebase-ui-storage:1.2.0'
我得到如下错误:
所有com.android.support库必须使用完全相同的版本规范(混合版本可能会导致运行时崩溃)。 发现版本25.3.1,25.1.1。 示例包括com.android.support:animated-vector-drawable:25.3.1和com.android.support:palette-v7:25.1.1
有一些库的组合,或工具和库,是不兼容的,或可能导致错误。 一种不兼容的情况是使用不是最新版本的Android支持库进行编译(或者特别是比targetSdkVersion更低的版本)。
我不知道为什么它发生,即使我没有使用矢量绘制或调色板
任何帮助?
提前致谢。
最近我有同样的问题。 所以我降低了这些版本:
compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8' compile 'com.android.support:design:25.0.0' compile 'com.google.firebase:firebase-storage:10.2.4' compile 'com.github.bumptech.glide:glide:4.0.0-RC0' compile 'com.google.firebase:firebase-storage:10.2.4'
对我来说工作得很好
但是如果你想知道你当前的依赖关系有什么问题,可能你应该看看你的完整的依赖关系是从哪里来的,你会看到哪个库需要不同版本的Android支持库。
- Kotlin,proguard,Android架构组件
- 在Kotlin中创建一个抽象类的实例
- 如何使用drawLine()绘制线条
- Kotlin Android基地方法不能调用
- 我可以使用Kotlin在Android项目中整合和使用admob广告吗?
- 在APK META-INF / library_release.kotlin_module中复制了重复的文件
- BottomNavigationView链接到ViewPager,当我设置监听器bottomNavigationView,我必须点击两次执行我所做的
- SonarQube:如何将多个质量配置文件应用于一个项目?
- 未找到Android Studio 3 appcompat资源