I am trying to add firebase in my project but when I implement \'com.google.firebase:firebase-messaging:19.0.0\' and \'com.google.firebase:firebase-core:1
You are using both support libraries and androidx libraries and you can't do it.
Cloud Messaging version 19.0.0 is in the June release. Check the official release notes of Firebase Libraries:
This release is a MAJOR version update and includes breaking changes. With this release, libraries are migrated from the Android Support Libraries to the Jetpack (AndroidX) Libraries. The updated libraries will not work unless you make the following changes in your app:
com.android.tools.build:gradle to v3.2.1 or later.compileSdkVersion to 28 or later.