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