Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need 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 record. So, why do I need to write it in Gradle? Can I use only appcompat?

compile 'com.android.support:appcompat-v7:23.2.0'
like image 887
tehnolog Avatar asked Oct 30 '22 08:10

tehnolog


1 Answers

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

There's no harm in including this dependency one more time in your build.gradle, but it's not necessary since design includes it.

like image 91
Egor Neliuba Avatar answered Nov 15 '22 06:11

Egor Neliuba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!