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
28.0.0 was the last version of the original support libraries and these are no longer maintained. All functionality which was present in the support libraries is now a part of the AndroidX namespace and Google recommends that you move to AndroidX.
In Android Studio 3.2 and higher you can migrate by doing a Refactor->Migrate to AndroidX
However note that there may be some changes that you may have to do manually if you've specialized your configuration.
Here's a video on the topic and the official documentation