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

前端 未结 10 961
迷失自我
迷失自我 2020-12-06 04:32

When I press the run button in Android Studio, my app compiles but shows this error (redacted):

Error:Program type a         


        
10条回答
  •  情深已故
    2020-12-06 05:19

    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.

提交回复
热议问题