用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支持库。
- 在Android中将Java与Kotlin结合
- 在Kodein中传递lambda作为参数
- Android Espresso测试(用Kotlin编写)看不到主要的类和包
- 插件错误:Kotlin抛出未捕获的IllegalStateException
- 如何在Android中使用kotlin获取片段中的资源ID?
- AndroidStudio ExternalSystemException与kotlin 0.12.213
- Rxjava与kotlin
- 在ConstraintLayout中使用组来侦听多个视图上的点击事件
- 在Kotlin中开发的Android库模块导出到Java应用程序导致失败的解决方案:Lkotlin / jvm / internal / Intrinsics