You need to migrate to AndroidX. In your Android Studio project click Refactor -> Migrate to AndroidX (all implementations will be replaced from android.support to androidx).
This component is by default available in Palette. Check it in Palette as below image
Solution -1
If you are not able to use it then you have to download it first. Sometimes developers have to download this before use. Just click on download button to use.
2
Answers
You need to migrate to AndroidX. In your Android Studio project click Refactor -> Migrate to AndroidX (all implementations will be replaced from android.support to androidx).
This component is by default available in
Palette
. Check it in Palette as below imageSolution -1
If you are not able to use it then you have to download it first. Sometimes developers have to download this before use. Just click on download button to use.
Solution -2
use this dependency [For AndroidX]