I\'m trying to figure out why the heck my Android studio isn\'t recognizing the AppCompat v7 library correctly. The import statement below shows up as gray and says there\'s
androidX users
Change your minSdkVersion to api level 21.
like this minSdkVersion 21
or build your app with compileSdkVersion 28
and also change targetSdkVersion
to targetSdkVersion 28
and you will see v7 error will gone. After that if you face a problem with creating Toolbar or other widget. press Alt+Enter and create a method for it.