I did not Import the Recycler View AndroidX Library, yet, I am using it. Why and How is it working?

As per the dependencies of the com.google.android.material:material:1.0.0:

androidx.recyclerview:recyclerview:1.0.0

This means that the Material library takes a transitive dependency on RecyclerView already and you don't need to manually include it yourself.


I did not Import the Recycler View AndroidX Library, yet i am using. Why and How is it working?

Because you have added the dependencies of com.google.android.material:material:1.0.0

No need to add androidx.recyclerview:recyclerview:1.0.0 if youhave already added com.google.android.material:material:1.0.0


com.google.android.material:material:1.0.0 Includes The RecyclerView Component So you dont need to add it externally.

if you added com.google.android.material:material:1.0.0to your app dependencies you don't need to add androidx.recyclerview:recyclerview:1.0.0 to your dependencies because it already included in material library.

For Additional Information https://developer.android.com/jetpack/androidx/migrate/class-mappings