I just made a migration to androidx through Android Studio menu option Refactor -> Refactor to AndroidX
I\'m getting the following
I updated the dependency, yet it did not resolve the error. Then I did a clean project and build and it is working now.