Build fails with 'Program type already present: android.arch.core.util.Function'

前端 未结 5 1727
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 20:44

After updating my Firebase and Play Services dependencies as well as the Play Services Plugin my project fails to build. I\'ve tried multiple Clean-Rebuilds and my app has M

5条回答
  •  孤街浪徒
    2020-12-02 21:02

    Program type already present: android.arch.core.util.Function Message{kind=ERROR, text=Program type already present: android.arch.core.util.Function, sources=[Unknown source file], tool name=Optional.of(D8)}

    I had the same problem above, and it was because i didn't include the core.

    implementation 'com.google.firebase:firebase-core:16.0.1'
    

    Noted some of your dependency is 16.0.1, would suggest you upgrade the core to 16.0.1 instead of 16.0.0.

    Have enclosed my dependency below for reference, hope you find it useful.

    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.firebaseui:firebase-ui-database:4.1.0'
    

提交回复
热议问题