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)?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.