【Error:Program type already present: android.arch.lifecycle.LiveData】今日长缨在手,何时缚住苍龙。这篇文章主要讲述Error:Program type already present: android.arch.lifecycle.LiveData相关的知识,希望能为你提供帮助。
Apparently, this is intended behavior:
com.firebaseui:firebase-ui-firestore:3.1.0 depends on android.arch.lifecycle:extensions:1.0.0-beta1. Switching to version 3.2.2 fixes the issue by using the Lifecycle 1.1 libraries that Support Library 27.1.0 are built upon. - Issue TrackerFor me, removing the
firebase-ui
dependencies solved the issue since I wasn‘t even using the library in the first place.You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the
gradle/wrapper/gradle-wrapper.properties
file. The following example sets the Gradle version to 4.10.1 in the
gradle-wrapper.properties
file....
distributionUrl = https://services.gradle.org/distributions/gradle-4.10.1-all.zip
...
推荐阅读
- android studio运行时报错AVD Nexus_5X_API_P is already running解决办法
- 「android」gomobile argument unused during compilation: '-stdlib=libc++'
- mui---调用图像裁剪android
- Android 开发 上拉加载更多功能实现
- c# 枚举安卓系统中所有目录及文件名
- CreateFileMappingMapViewOfFile UnmapViewOfFile函数用法及示例
- 在Android浏览器中通过WebView调用相机拍照/选择文件 上传到服务器
- win7/10下Qt Creator调试提示(The selected debugger may be inappropriate for the inferior的解决办法)
- Android MVP 架构一 View与Presenter