我正在实现一个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