Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward. The IDE can help with this: Refactor > Migrate to AndroidX…
You can either use the previous API packages version of artifacts or the new Androidx, never both.
If you wanna use the previous version, replace your dependencies with
Add this:
to your manifest application