Reputation: 1070
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
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