码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-01-21 19:27:39      阅读:476      评论:0      收藏:0      [点我收藏+]

标签:gre   prope   out   amp   ready   following   tty   google   groovy   

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

标签:gre   prope   out   amp   ready   following   tty   google   groovy   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!