Do I need a Gradle dependency for RecyclerView?

I forgot to include this in Gradle -

compile 'com.android.support:recyclerview-v7:23.+' 

But my project works fine without this entry. So why should I write it in Gradle? Can I use only appcompat?

 compile 'com.android.support:appcompat-v7:23.2.0' 
+5
source share
1 answer

com.android.support:appcompat-v7 does not depend on com.android.support:recyclerview-v7 , but com.android.support:design does.

There is no harm in including this dependency again in your build.gradle , but this is not necessary since design includes it.

+2
source

Source: https://habr.com/ru/post/1244564/


All Articles