So I\'m following the official documentation to add the Material Components library to my project https://github.com/material-components/material-components-android/blob/mas
Make sure your gradle.properties enabled AndroidX using the following Line:
android.useAndroidX = true
If not added then add this line and sync project again
Visit For More Details