Error:Program type already present: android.arch.lifecycle.LiveData

Posted 赏月斋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 Tracker

For 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
...

以上是关于Error:Program type already present: android.arch.lifecycle.LiveData的主要内容,如果未能解决你的问题,请参考以下文章

Error: Program type already present: com.google.gson.FieldAttributes 的解决方法

is alread defined as class

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was alread

org.hibernate.NonUniqueObjectException:a different object with the same identifier value was alread(

由bash-3.2$ pipenv shellShell for UNKNOWN_VIRTUAL_ENVIRONMENT alread转pipenv,轻松管理多个Python环境

CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 10.76 GiB total capacity; 652.77 MiB alread