I have a strange issue when integrate firebase:
firebase
Use implementation com.google.firebase:firebase-database:16.0.1 as many wrote before. But also add the line: kapt com.google.firebase:firebase-database:16.0.1:15.0.0 this way firebase keep "Dependencies set up correctly".
implementation com.google.firebase:firebase-database:16.0.1
kapt com.google.firebase:firebase-database:16.0.1:15.0.0