no news
no news

Reputation: 1070

Dependencies in Android Library

I need to use recyclerView in my library. I just compile it in gradle (Library module):

dependencies {
    compile 'com.android.support:recyclerview-v7:25.3.1' 
}

In other projects, it's look like that:

dependencies {
        compile 'ru.alexbykov:nopaginate' //my library
        compile 'com.android.support:recyclerview-v7:25.3.1' 
  }

RecyclerView is connected twice (In my current project and in my library which is located in jcenter )

Is it possible to connect a recyclerView only in the project module? (not in library)?

Upvotes: 1

Views: 67

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007584

RecyclerView is connected twice (In my current project and in my library which is located in jcenter )

This is not a problem. The project could remove its dependency on recyclerview-v7 if desired.

Is it possible to connect a recyclerView only in the project module? (not in library)?

Only by not using RecyclerView in the library.

Upvotes: 4

Related Questions