After migrating to Androidx packages using Android Studio menu option Refactor -> Refactor to Androidx...
I\'m getting the following error:
Error inf
Well in my case I've tried Solution 1 which still was not working. Then I used Solution 2 along with Solution 1.
Updating the current version ConstraintLayout in app level build.gradle file.
From
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
Into
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
Invalidate Caches and Restart Android Studio (If still not working after applying Solution 1).
File → Invalidate Caches / Restart → Invalidate and Restart
I used both of them and It works fine for me.
Note: Solution 1 is important.