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

原文地址:https://www.cnblogs.com/sddai/p/10300085.html

时间: 2024-10-30 07:16:13

Error:Program type already present: android.arch.lifecycle.LiveData的相关文章

Error: Program type already present: okhttp3.Authenticator$1

在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.support',module:'support-v13' } 如图 原文地址:https:/

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

在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.support',module:'support-v13' } 如图 原文地址:https:/

android:Program type already present: android.support.v4.app.INotificationSideChannel

背景 这个错误的原因是:androidx和 android.support同时存在. 首先,网上有很多解答说这样处理: 在 gradle.properties 添加: android.useAndroidX=true android.enableJetifier=true 然后再build.gradle 中添加这个: implementation "androidx.room:room-runtime:2.0.0-alpha1" annotationProcessor "an

导入项目的时候报错Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7

问题描述 今天在导入项目的时候报错: Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7. 原因是:没有下载相应版本的ConstraintLayout. 解决方案 工具栏上选择 Tools --> Android -->SDK Manager 切换到SDK Tools选项,在右下角处勾选 Show Package Details 在Support Repository下的Const

“command line option syntax error,Type command/?for help

VS2010安装WDT时出现"command line option syntax error,Type command/?for help错误 解决:可能是因为你的安装源文件所在的路径中有中文,所以你可将安装文件放在一个没有中文的路径. "command line option syntax error,Type command/?for help,布布扣,bubuko.com

error: conflicting type qualifiers for 'xxxxx'

网上的很多解释--很难理解-- 情景描述: 在代码中,写了A\B两个文件,A:是.c文件,B是.h文件和.c文件. 在A中包含了B.h文件. 在B.h文件中声明了A中定义的变量. 这样编译的情况下就会出现error: conflicting type qualifiers for 'XXXX"的编译错误. 解决办法: 将在B.h中声明的外部变量移到B.c中. 这样两者之间就不存在一种相互引用的高度耦合状态. error: conflicting type qualifiers for 'xxxx

jni 编译错误error: unknown type name '__va_list'

platforms\android-9\arch-arm\usr\include\stdio.h:257:37: error: unknown type name '__va_list' 解决方法: 默认的android-9不兼容 Applicaton.mk  添加APP_PLATFORM := android-21 jni 编译错误error: unknown type name '__va_list'

Eclipse 报错:Error: Program "sh" not found in PATH

SDK和ADT为22.6.2版本 工程为4.4.2 在编译一个Launcher时,报错如下: sh ndk-build clean Cannot run program "sh": Launching failed Error: Program "sh" not found in PATH PATH=...... 在网上看了一下,一直以为是什么GCC的问题,多次尝试后无果,后来查阅了一些资料后,说是和NDK有关系,马上配置一下,问题解决了,非常感谢同事的帮忙! Wi

error for type '#anontype_array'.duplicate attribute uses with the same name and target namespace are specified.name of duplicate attribute use is 'merge'

虽然报错并不影响项目,将  http://www.springframework.org/schema/beans/spring-beans-版本号.xsd 改为http://www.springframework.org/schema/beans/spring-beans-4.3.xsd error for type '#anontype_array'.duplicate attribute uses with the same name and target namespace are sp