我正在实施一个有两个模块的Android
应用程序。 app
模块使用library
模块。在library
的build.gradle
文件中存在依赖关系:
api "se.emilsjolander:stickylistheaders:2.7.0"
这个库在app
模块的xml
文件中使用。
app's
build.gradle
文件包括library
模块:
implementation project(path: ':Library', configuration: 'default')
现在的问题是,当我尝试在设备上运行时,我总是看到这个错误:
Android resource linking failed
error: attribute hasStickyHeaders not found.
error: attribute isDrawingListUnderStickyHeader not found.
error: failed linking file resources.
这是我正在使用的库:https://github.com/emilsjolander/StickyListHeaders
像github上的指示一样添加gradle依赖:
dependencies {
compile 'se.emilsjolander:stickylistheaders:x.x.x'
}