gpt4 book ai didi

android - Android 库中的依赖项

转载 作者:行者123 更新时间:2023-11-29 15:37:36 26 4
gpt4 key购买 nike

我需要在我的库中使用 recyclerView。 我只是在 gradle(库模块)中编译它:

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

在其他项目中,它看起来像这样:

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

RecyclerView 连接了两次(在我当前的项目和我位于 jcenter 的库中)

是否可以只在项目模块中连接一个recyclerView? (不在图书馆)?

最佳答案

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

这不是问题。如果需要,该项目可以删除对 recyclerview-v7 的依赖。

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

只能在库中不使用 RecyclerView

关于android - Android 库中的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46635302/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com